Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: wlan-ng: prism2mib: Remove unnecessary variable

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>

authored by

Amitoj Kaur Chawla and committed by
Greg Kroah-Hartman
d4f8455b 6ba714bb

+1 -4
+1 -4
drivers/staging/wlan-ng/prism2mib.c
··· 660 660 struct p80211msg_dot11req_mibset *msg, 661 661 void *data) 662 662 { 663 - int result; 664 663 u32 *uint32 = (u32 *) data; 665 664 666 665 if (!isget) ··· 671 672 return 0; 672 673 } 673 674 674 - result = prism2mib_uint32(mib, isget, wlandev, hw, msg, data); 675 - 676 - return result; 675 + return prism2mib_uint32(mib, isget, wlandev, hw, msg, data); 677 676 } 678 677 679 678 /*----------------------------------------------------------------