3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-21 03:32:42 +01:00

wiphy: Remove useless null check on array

This commit is contained in:
Markus Ongyerth 2016-12-16 13:50:11 +01:00 committed by Denis Kenzior
parent e2074678a3
commit 139c8af210

View File

@ -363,7 +363,7 @@ static void wiphy_register(struct wiphy *wiphy)
wiphy->soft_rfkill = rfkill_get_soft_state(wiphy->id); wiphy->soft_rfkill = rfkill_get_soft_state(wiphy->id);
wiphy->hard_rfkill = rfkill_get_hard_state(wiphy->id); wiphy->hard_rfkill = rfkill_get_hard_state(wiphy->id);
if (wiphy->name && hwdb) { if (hwdb) {
char modalias[128]; char modalias[128];
ssize_t len; ssize_t len;
struct l_hwdb_entry *entries = NULL, *kv; struct l_hwdb_entry *entries = NULL, *kv;