mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 03:06:50 -04:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e00b9bb34e
commit
7676b72428
@@ -2044,7 +2044,7 @@ static int ks_wlan_set_pmksa(struct net_device *dev,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (ptr == &priv->pmklist.head) { /* not find address. */
|
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++) {
|
for (i = 0; i < PMK_LIST_MAX; i++) {
|
||||||
pmk = &priv->pmklist.pmk[i];
|
pmk = &priv->pmklist.pmk[i];
|
||||||
if (!memcmp
|
if (!memcmp
|
||||||
|
|||||||
Reference in New Issue
Block a user