Thread (33 messages) 33 messages, 5 authors, 2011-09-17

Re: [PATCH 20/20] Staging: hv: netvsc: Rename deviceInfo as device_info

From: Joe Perches <joe@perches.com>
Date: 2011-09-13 18:10:33
Also in: lkml

On Tue, 2011-09-13 at 10:59 -0700, K. Y. Srinivasan wrote:
Rename deviceInfo as device_info.
[]
quoted hunk ↗ jump to hunk
diff --git a/drivers/staging/hv/rndis_filter.c b/drivers/staging/hv/rndis_filter.c
[]
quoted hunk ↗ jump to hunk
@@ -732,15 +732,15 @@ int rndis_filter_device_add(struct hv_device *dev,
[]
 	dev_info(&dev->device, "Device MAC %pM link state %s",
 		 rndis_device->hw_mac_adr,
-		 ((deviceInfo->link_state) ? ("down\n") : ("up\n")));
+		 ((device_info->link_state) ? ("down\n") : ("up\n")));
Maybe get rid of the superfluous parentheses too?

	dev_info(&dev->device, "Device MAC %pM link state %s\n",
		 rndis_device->hw_mac_adr,
		 device_info->link_state ? "down" : "up");

Also, struct rndis_device uses
	u32 link_stat;
that is copied into struct netvsc_device_info
	bool link_state;
could you please rationalize the names and types
of those 2 variables?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help