[PATCH 34/62] net/nfb: use kvargs numeric helpers

Martin Spinler spinler at cesnet.cz
Mon Sep 14 16:44:29 CEST 2026


On Sun, 2026-09-13 at 22:47 -0700, Stephen Hemminger wrote:
> Replace the open coded isdigit(), errno and end pointer checks in
> nfb_eth_dev_create_for_ifc_by_port() with a range checked conversion.
> 
> The "port >= LONG_MAX" test was redundant with the interface count
> check that follows it, since ifc_cnt is far below LONG_MAX.
> 
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>

Acked-by: Martin Spinler <spinler at cesnet.cz>


More information about the dev mailing list