All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: gdmwm: move constant to right side of comparison test
@ 2015-10-09  6:13 Alison Schofield
  2015-10-10  7:00 ` [Outreachy kernel] " Sudip Mukherjee
  2015-10-12 20:53 ` [PATCH v2] staging: gdmwm: move variables " Alison Schofield
  0 siblings, 2 replies; 7+ messages in thread
From: Alison Schofield @ 2015-10-09  6:13 UTC (permalink / raw)
  To: outreachy-kernel

Move constant to right side of comparison test per checkpatch.pl:
WARNING: Comparisons should place the constant on the right side of the
test

Signed-off-by: Alison Schofield <amsfield22@gmail.com>
---
 drivers/staging/gdm72xx/gdm_wimax.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/gdm72xx/gdm_wimax.c b/drivers/staging/gdm72xx/gdm_wimax.c
index 6e8dbaf..69f00cc 100644
--- a/drivers/staging/gdm72xx/gdm_wimax.c
+++ b/drivers/staging/gdm72xx/gdm_wimax.c
@@ -581,8 +581,8 @@ static int gdm_wimax_get_prepared_info(struct net_device *dev, char *buf,
 		}
 
 		pos += gdm_wimax_hci_get_tlv(&buf[pos], &T, &L, &V);
-		if (T == TLV_T(T_MAC_ADDRESS)) {
-			if (L != dev->addr_len) {
+		if (TLV_T(T_MAC_ADDRESS) == T) {
+			if (dev->addr_len != L) {
 				netdev_err(dev,
 					   "%s Invalid information result T/L [%x/%d]\n",
 					   __func__, T, L);
-- 
2.1.4



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-10-12 20:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-09  6:13 [PATCH] staging: gdmwm: move constant to right side of comparison test Alison Schofield
2015-10-10  7:00 ` [Outreachy kernel] " Sudip Mukherjee
2015-10-10  7:22   ` Julia Lawall
2015-10-11  6:37     ` Alison Schofield
2015-10-11 10:04       ` Julia Lawall
2015-10-12  9:43         ` Sudip Mukherjee
2015-10-12 20:53 ` [PATCH v2] staging: gdmwm: move variables " Alison Schofield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.