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:
Haowen Bai 2022-05-16 18:18:41 +08:00 committed by Greg Kroah-Hartman
parent 14afedb488
commit 3baab4bc2f

View File

@ -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;