diff options
author | Tobin C. Harding <me@tobin.cc> | 2017-03-14 09:54:05 +1100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-14 08:08:15 +0800 |
commit | 7676b72428e84f344bd64fecc1d4c840e57a68d8 (patch) | |
tree | 40d65e2c4f0fd44eb6873538366a02eb92b288a7 /drivers/staging/ks7010 | |
parent | e00b9bb34e2784f41bdfc7083c7d37ca1b97aca3 (diff) | |
download | op-kernel-dev-7676b72428e84f344bd64fecc1d4c840e57a68d8.zip op-kernel-dev-7676b72428e84f344bd64fecc1d4c840e57a68d8.tar.gz |
staging: ks7010: move comparison to right hand side
Checkpatch emits WARNING: Comparisons should place the constant on the
right side of the test.
Move constant to right hand side of test, modify operator to ensure
logic is maintained.
Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ks7010')
-rw-r--r-- | drivers/staging/ks7010/ks_wlan_net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ks7010/ks_wlan_net.c b/drivers/staging/ks7010/ks_wlan_net.c index 648170d..7820440 100644 --- a/drivers/staging/ks7010/ks_wlan_net.c +++ b/drivers/staging/ks7010/ks_wlan_net.c @@ -2044,7 +2044,7 @@ static int ks_wlan_set_pmksa(struct net_device *dev, } } if (ptr == &priv->pmklist.head) { /* not find address. */ - if (PMK_LIST_MAX > priv->pmklist.size) { /* new cache data */ + if (priv->pmklist.size <= PMK_LIST_MAX) { /* new cache data */ for (i = 0; i < PMK_LIST_MAX; i++) { pmk = &priv->pmklist.pmk[i]; if (!memcmp |