Commit 4acdd3de authored by Thorsten Blum's avatar Thorsten Blum Committed by Paolo Abeni
Browse files

rocker: Simplify if condition in ofdpa_port_fdb()



Remove the double negation and simplify the if condition.

No functional changes intended.

Signed-off-by: default avatarThorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: default avatarJiri Pirko <jiri@nvidia.com>
Link: https://patch.msgid.link/20250407091442.743478-1-thorsten.blum@linux.dev


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent fc2e4f4f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1933,7 +1933,7 @@ static int ofdpa_port_fdb(struct ofdpa_port *ofdpa_port,
	spin_unlock_irqrestore(&ofdpa->fdb_tbl_lock, lock_flags);

	/* Check if adding and already exists, or removing and can't find */
	if (!found != !removing) {
	if (!found == removing) {
		kfree(fdb);
		if (!found && removing)
			return 0;