Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7676b724 authored by Tobin C. Harding's avatar Tobin C. Harding Committed by Greg Kroah-Hartman
Browse files

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: default avatarTobin C. Harding <me@tobin.cc>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e00b9bb3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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