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
1 changed files with 1 additions and 1 deletions

View File

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