Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32b41d8f authored by Christophe Ricard's avatar Christophe Ricard Committed by Samuel Ortiz
Browse files

NFC: st21nfca: Remove useless err == 0 condition



On top of st21nfca_im_recv_atr_res_cb and st21nfca_im_recv_dep_res_cb a
condition if (err != 0) is present. Because err is never modified in the
code err will always be 0 at the end.

The condition can be removed.

Signed-off-by: default avatarChristophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 72030a2e
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -485,7 +485,6 @@ static void st21nfca_im_recv_atr_res_cb(void *context, struct sk_buff *skb,
						ST21NFCA_PP2LRI(atr_res->ppi));
		break;
	default:
		if (err == 0)
		kfree_skb(skb);
		break;
	}
@@ -616,7 +615,6 @@ static void st21nfca_im_recv_dep_res_cb(void *context, struct sk_buff *skb,
	}

exit:
	if (err == 0)
	kfree_skb(skb);
}