Tag: d6650a2ccfdcf536841c2f880a1a6f19fce2e3a1

NFC: Move the nfcwilink dereference below the NULL test

Author: Wei Yongjun <yongjun_wei@trendmicro.com.cn> spatch with a semantic match is used to found this. (http://coccinelle.lip6.fr/) Signed-off-by: Wei Yongjun Signed-off-by: Samuel Ortiz — drivers/nfc/nfcwilink.c | 4 ++– 1 file changed, 2 insertions(+), 2 deletions(-)   diff –git a/drivers/nfc/nfcwilink.c b/drivers/nfc/nfcwilink.c index 827f039..50b1ee4 100644 — a/drivers/nfc/nfcwilink.c +++ b/drivers/nfc/nfcwilink.c @@ -352,8 +352,6 @@ static long nfcwilink_receive(void *priv_data, struct sk_buff …

Continue reading