staging: ks7010: utilize local variable
authorTobin C. Harding <me@tobin.cc>
Mon, 10 Apr 2017 03:15:51 +0000 (13:15 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Apr 2017 14:05:50 +0000 (16:05 +0200)
commit3da1b2371ec27accebe601e84a41f8b67f9b5688
treed91c17978bd2e83079572f430d58dbd3bc6f3497
parentb121d84882b97b8668be0b95e9ba50cfd01aa0f1
staging: ks7010: utilize local variable

Function contains a local pointer variable defined to a memory location
within a structure. This memory location is later used by
dereferencing the struct instead of using the local pointer. The code
is cleaner if all references of the same memory location use the
local variable.

Utilize existing local pointer variable instead of dereferencing
struct.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks_wlan_net.c