summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaowen Bai <baihaowen@meizu.com>2022-05-16 18:18:41 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-05-19 17:42:41 +0200
commit3baab4bc2f5a1eb083a4c4d25d393a4fec87fd48 (patch)
tree7f6ca53b6746544ea328df9c6e85c4751e65b26d
parent14afedb488c61fecf5118030dcdd0a1eaeeca3a7 (diff)
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>
-rw-r--r--drivers/staging/ks7010/ks_hostif.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c
index d0475189607d..9429ee155910 100644
--- a/drivers/staging/ks7010/ks_hostif.c
+++ b/drivers/staging/ks7010/ks_hostif.c
@@ -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;