container_of() will never return NULL, so remove useless code. Signed-off-by: Haowen Bai <baihaowen@xxxxxxxxx> --- drivers/staging/ks7010/ks_hostif.c | 2 -- 1 file changed, 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; -- 2.7.4