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:
parent
e2074678a3
commit
139c8af210
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user