From: Johannes Berg Date: Thu, 15 Oct 2015 06:44:32 +0000 (+0200) Subject: cfg80211: reg: remove useless non-NULL check X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7cf374182391d67f08c0ef0519a57fb594e0f543;p=linux-beck.git cfg80211: reg: remove useless non-NULL check There's no way that the alpha2 pointer can be NULL, so no point in checking that it isn't. Signed-off-by: Johannes Berg --- diff --git a/net/wireless/reg.c b/net/wireless/reg.c index f0b0f8c818b1..92ee92a1592b 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -501,9 +501,6 @@ static void reg_regdb_query(const char *alpha2) { struct reg_regdb_search_request *request; - if (!alpha2) - return; - request = kzalloc(sizeof(struct reg_regdb_search_request), GFP_KERNEL); if (!request) return;