mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
6ba714bb5f
commit
d4f8455b12
|
@ -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);
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue