From def2d8b069c3d4f388022f485b9e1823fe1fd6d9 Mon Sep 17 00:00:00 2001 From: Rickard Strandqvist Date: Thu, 22 May 2014 22:25:06 +0200 Subject: [PATCH] staging: rtl8192u: r8192U_core.c: Fix to remove null pointer checks that could never happen Removal of null pointer checks that could never happen Signed-off-by: Rickard Strandqvist Signed-off-by: Greg Kroah-Hartman --- drivers/staging/rtl8192u/r8192U_core.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c index 1bb6143cdf0f..b7097505eef5 100644 --- a/drivers/staging/rtl8192u/r8192U_core.c +++ b/drivers/staging/rtl8192u/r8192U_core.c @@ -2045,9 +2045,6 @@ static void rtl8192_qos_activate(struct work_struct *work) u32 u4bAcParam; int i; - if (priv == NULL) - return; - mutex_lock(&priv->mutex); if (priv->ieee80211->state != IEEE80211_LINKED) goto success;