=?UTF-8?q?Staging:=20batman-adv:=20Fix=20coding=20style=20in=20device.c
PATCH 1/1 =?UTF-8?q?Staging:=20batman-adv:=20Fix=20coding=20style=20in=20device.c
From: Ólafur Jens Śigurðsson <[email protected]>
--- drivers/staging/batman-adv/device.c | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-)
drivers/staging/batman-adv/device.c +10 -5
@@ -67,7 +67,7 @@ int bat_device_setup(void) batman_class =class_create (THIS_MODULE ,"batman-adv" );if (IS_ERR (batman_class)) { -printk (KERN_ERR "batman-adv:Could not register class 'batman-adv' \n" ); +printk (KERN_ERR "batman-adv:Could not register class 'batman-adv'\n" );return 0 ; }
@@ -110,7 +110,7 @@ int bat_device_open(struct inode *inode, struct file *file) }if (device_client_hash[i] != device_client) { -printk (KERN_ERR "batman-adv:Error - can't add another packet client: maximum number of clients reached \n" ); +printk (KERN_ERR "batman-adv:Error - can't add another packet client: maximum number of clients reached\n" );kfree (device_client);return -EXFULL ; }
@@ -211,7 +211,8 @@ ssize_t bat_device_write(struct file *file, const char __user *buff,unsigned long flags;if (len <sizeof (struct icmp_packet )) { -bat_dbg (DBG_BATMAN ,"batman-adv:Error - can't send packet from char device: invalid packet size\n" ); +bat_dbg (DBG_BATMAN ,"batman-adv:Error - can't send packet from " +"char device: invalid packet size\n" );return -EINVAL ; }
@@ -222,12 +223,16 @@ ssize_t bat_device_write(struct file *file, const char __user *buff,return -EFAULT ;if (icmp_packet.packet_type !=BAT_ICMP ) { -bat_dbg (DBG_BATMAN ,"batman-adv:Error - can't send packet from char device: got bogus packet type (expected: BAT_ICMP)\n" ); +bat_dbg (DBG_BATMAN ,"batman-adv:Error - can't send packet from " +"char device: got bogus packet type " +"(expected: BAT_ICMP)\n" );return -EINVAL ; }if (icmp_packet.msg_type !=ECHO_REQUEST ) { -bat_dbg (DBG_BATMAN ,"batman-adv:Error - can't send packet from char device: got bogus message type (expected: ECHO_REQUEST)\n" ); +bat_dbg (DBG_BATMAN ,"batman-adv:Error - can't send packet from " +"char device: got bogus message type " +"(expected: ECHO_REQUEST)\n" );return -EINVAL ; }
Signature · 1 line
1.6.6.2
Quoted 1 line · Ólafur Jens Sigurðsson
From: Ólafur Jens Śigurðsson <[email protected]>
I need a "Signed-off-by" line in order to be able to apply this. Care to resend it with that?
thanks,
greg k-h