mwifiex: remove superfluous condition
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 31 Jul 2016 10:39:15 +0000 (12:39 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 3 Sep 2016 09:59:45 +0000 (12:59 +0300)
for_each_property_of_node is only executed if the
property prop is not NULL.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Acked-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/sta_cmd.c

index 108c11c..d1f8011 100644 (file)
@@ -1485,7 +1485,7 @@ int mwifiex_dnld_dt_cfgdata(struct mwifiex_private *priv,
                        continue;
 
                /* property header is 6 bytes, data must fit in cmd buffer */
-               if (prop && prop->value && prop->length > 6 &&
+               if (prop->value && prop->length > 6 &&
                    prop->length <= MWIFIEX_SIZE_OF_CMD_BUFFER - S_DS_GEN) {
                        ret = mwifiex_send_cmd(priv, HostCmd_CMD_CFG_DATA,
                                               HostCmd_ACT_GEN_SET, 0,