Commit cc5e3fff authored by Srivathsa Dara's avatar Srivathsa Dara Committed by Greg Kroah-Hartman
Browse files

staging: wfx: sta: Fix 'else' coding style warning



Fix 'else is not generally useful after a break or return' checkpatch
warning

Signed-off-by: default avatarSrivathsa Dara <srivathsa729.8@gmail.com>
Link: https://lore.kernel.org/r/20210914143107.18436-1-srivathsa729.8@gmail.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5e57c668
Loading
Loading
Loading
Loading
+11 −12
Original line number Diff line number Diff line
@@ -169,7 +169,7 @@ static int wfx_get_ps_timeout(struct wfx_vif *wvif, bool *enable_ps)
			if (wvif->vif->bss_conf.assoc && wvif->vif->bss_conf.ps)
				dev_info(wvif->wdev->dev, "ignoring requested PS mode");
			return -1;
		} else {
		}
		/* It is necessary to enable PS if channels
		 * are different.
		 */
@@ -182,7 +182,6 @@ static int wfx_get_ps_timeout(struct wfx_vif *wvif, bool *enable_ps)
		else
			return 30;
	}
	}
	if (enable_ps)
		*enable_ps = wvif->vif->bss_conf.ps;
	if (wvif->wdev->force_ps_timeout > -1)