Skip to content

Commit 4acdd3d

Browse files
tobluxPaolo Abeni
authored andcommitted
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 <[email protected]> Reviewed-by: Jiri Pirko <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent fc2e4f4 commit 4acdd3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/rocker/rocker_ofdpa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1933,7 +1933,7 @@ static int ofdpa_port_fdb(struct ofdpa_port *ofdpa_port,
19331933
spin_unlock_irqrestore(&ofdpa->fdb_tbl_lock, lock_flags);
19341934

19351935
/* Check if adding and already exists, or removing and can't find */
1936-
if (!found != !removing) {
1936+
if (!found == removing) {
19371937
kfree(fdb);
19381938
if (!found && removing)
19391939
return 0;

0 commit comments

Comments
 (0)