Skip to content

Commit

Permalink
cfg80211: reg: remove useless non-NULL check
Browse files Browse the repository at this point in the history
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 <johannes.berg@intel.com>
  • Loading branch information
Johannes Berg committed Oct 15, 2015
1 parent 8047d26 commit 7cf3741
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/wireless/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7cf3741

Please sign in to comment.