staging: wlan-ng: prism2mib: Remove unnecessary variable
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Sat, 31 Oct 2015 10:19:29 +0000 (15:49 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
Drop unnecessary variable that can be replaced by a single line of
code.

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/prism2mib.c

index b4a15ef..cdda07d 100644 (file)
@@ -660,7 +660,6 @@ static int prism2mib_fragmentationthreshold(struct mibrec *mib,
                                            struct p80211msg_dot11req_mibset *msg,
                                            void *data)
 {
-       int result;
        u32 *uint32 = (u32 *) data;
 
        if (!isget)
@@ -672,9 +671,7 @@ static int prism2mib_fragmentationthreshold(struct mibrec *mib,
                        return 0;
                }
 
-       result = prism2mib_uint32(mib, isget, wlandev, hw, msg, data);
-
-       return result;
+       return prism2mib_uint32(mib, isget, wlandev, hw, msg, data);
 }
 
 /*----------------------------------------------------------------