staging: ks7010: Remove initialisation in ks7010_sdio.c
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Fri, 24 May 2019 08:58:42 +0000 (14:28 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2019 21:09:46 +0000 (14:09 -0700)
As the initial value of the return variable result is never used, it can
be removed.
Issue found with Coccinelle.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks7010_sdio.c

index 74551eb..4b37954 100644 (file)
@@ -380,7 +380,7 @@ int ks_wlan_hw_tx(struct ks_wlan_private *priv, void *p, unsigned long size,
                                           struct sk_buff *skb),
                  struct sk_buff *skb)
 {
-       int result = 0;
+       int result;
        struct hostif_hdr *hdr;
 
        hdr = (struct hostif_hdr *)p;