Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rocker: Simplify if condition in ofdpa_port_fdb()

Remove the double negation and simplify the if condition.

No functional changes intended.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://patch.msgid.link/20250407091442.743478-1-thorsten.blum@linux.dev
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

Thorsten Blum and committed by
Paolo Abeni
4acdd3de fc2e4f4f

+1 -1
+1 -1
drivers/net/ethernet/rocker/rocker_ofdpa.c
··· 1933 1933 spin_unlock_irqrestore(&ofdpa->fdb_tbl_lock, lock_flags); 1934 1934 1935 1935 /* Check if adding and already exists, or removing and can't find */ 1936 - if (!found != !removing) { 1936 + if (!found == removing) { 1937 1937 kfree(fdb); 1938 1938 if (!found && removing) 1939 1939 return 0;