Skip to contentSkip to conversation

drivers:staging:wlan_ng Fix no space is necessary after a cast

PATCH In review Bogicevic Sasa 4 participants 5 messages Oct 27, 2015 – Oct 28, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 drivers:staging:wlan_ng Fix no space is necessary after a cast

This fixes "No space is necessary after a cast" messages from checkpatch.pl

---
 drivers/staging/wlan-ng/prism2usb.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/staging/wlan-ng/prism2usb.c +4 -4
index 9167f6e..1485c00 100644
@@ -6,7 +6,7 @@
 
 #define PRISM_DEV(vid, pid, name)		\
 	{ USB_DEVICE(vid, pid),			\
-	.driver_info = (unsigned long) name }
+	.driver_info = (unsigned long)name }
 
 static struct usb_device_id usb_prism_tbl[] = {
 	PRISM_DEV(0x04bb, 0x0922, "IOData AirPort WN-B11/USBS"),
@@ -142,7 +142,7 @@ static void prism2sta_disconnect_usb(struct usb_interface *interface)
 {
 	wlandevice_t *wlandev;
 
-	wlandev = (wlandevice_t *) usb_get_intfdata(interface);
+	wlandev = (wlandevice_t *)usb_get_intfdata(interface);
 	if (wlandev != NULL) {
 		LIST_HEAD(cleanlist);
 		struct list_head *entry;
@@ -237,7 +237,7 @@ static int prism2sta_suspend(
 	hfa384x_t *hw = NULL;
 	wlandevice_t *wlandev;
 
-	wlandev = (wlandevice_t *) usb_get_intfdata(interface);
+	wlandev = (wlandevice_t *)usb_get_intfdata(interface);
 	if (!wlandev)
 		return -ENODEV;
 
@@ -260,7 +260,7 @@ static int prism2sta_resume(struct usb_interface *interface)
 	hfa384x_t *hw = NULL;
 	wlandevice_t *wlandev;
 
-	wlandev = (wlandevice_t *) usb_get_intfdata(interface);
+	wlandev = (wlandevice_t *)usb_get_intfdata(interface);
 	if (!wlandev)
 		return -ENODEV;
 
Signature · 1 line
1.9.1
#3 lore raw

It should be fine, I meant in a sence nothing is accepted from me yet

Quoted 10 lines · Greg KH
Quoted 7 lines · Albino B Neto

2015-10-27 9:24 GMT-02:00 Bogicevic Sasa <[email protected]>:

Quoted 4 lines

This fixes "No space is necessary after a cast" messages from checkpatch.pl

Tips for read: https://www.kernel.org/doc/Documentation/CodingStyle

What does that mean? What is wrong with this patch?

#4 lore raw
Quoted 1 line · Bogicevic Sasa

It should be fine, I meant in a sence nothing is accepted from me yet

It doesnot generate any warning in my setup.
And please donot top post while replying.

regards
sudip