]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
staging: rtl8192u: r8192U_core.c: Fix to remove null pointer checks that could never...
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Thu, 22 May 2014 20:25:06 +0000 (22:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 12:37:20 +0000 (21:37 +0900)
Removal of null pointer checks that could never happen

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/r8192U_core.c

index 1bb6143cdf0f18aec8a9ae5906b74e94b1d68b88..b7097505eef547b6468c01ac15e359597a429198 100644 (file)
@@ -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;