[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1353408838-28678-1-git-send-email-sachin.kamat@linaro.org>
Date: Tue, 20 Nov 2012 16:23:58 +0530
From: Sachin Kamat <sachin.kamat@...aro.org>
To: netdev@...r.kernel.org
Cc: davem@...emloft.net, sjur.brandeland@...ricsson.com,
sachin.kamat@...aro.org, patches@...aro.org
Subject: [PATCH 1/1] caif: Remove redundant null check before kfree in cfctrl.c
kfree on a null pointer is a no-op.
Signed-off-by: Sachin Kamat <sachin.kamat@...aro.org>
---
net/caif/cfctrl.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/net/caif/cfctrl.c b/net/caif/cfctrl.c
index 44f270f..a376ec1 100644
--- a/net/caif/cfctrl.c
+++ b/net/caif/cfctrl.c
@@ -515,8 +515,7 @@ static int cfctrl_recv(struct cflayer *layer, struct cfpkt *pkt)
client_layer : NULL);
}
- if (req != NULL)
- kfree(req);
+ kfree(req);
spin_unlock_bh(&cfctrl->info_list_lock);
}
--
1.7.4.1
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists