mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 22:54:05 +08:00
staging: ks7010: remove null check after call container_of()
container_of() will never return NULL, so remove useless code. Signed-off-by: Haowen Bai <baihaowen@meizu.com> Link: https://lore.kernel.org/r/1652696322-17685-1-git-send-email-baihaowen@meizu.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
14afedb488
commit
3baab4bc2f
@ -2201,8 +2201,6 @@ static void hostif_sme_work(struct work_struct *work)
|
||||
struct ks_wlan_private *priv;
|
||||
|
||||
priv = container_of(work, struct ks_wlan_private, sme_work);
|
||||
if (!priv)
|
||||
return;
|
||||
|
||||
if (priv->dev_state < DEVICE_STATE_BOOT)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user