Commit 4b26706c authored by Georgiana Chelu's avatar Georgiana Chelu Committed by Greg Kroah-Hartman

Staging: irda: net: Fix style issues

Fix minor coding style issues found by checkpatch.pl.
Signed-off-by: default avatarGeorgiana Chelu <georgiana.chelu93@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c8d2d20e
...@@ -59,7 +59,7 @@ static hashbin_t *tasks; ...@@ -59,7 +59,7 @@ static hashbin_t *tasks;
static void irda_task_timer_expired(void *data); static void irda_task_timer_expired(void *data);
int __init irda_device_init( void) int __init irda_device_init(void)
{ {
dongles = hashbin_new(HB_NOLOCK); dongles = hashbin_new(HB_NOLOCK);
if (!dongles) { if (!dongles) {
...@@ -76,7 +76,8 @@ int __init irda_device_init( void) ...@@ -76,7 +76,8 @@ int __init irda_device_init( void)
} }
/* We no longer initialise the driver ourselves here, we let /* We no longer initialise the driver ourselves here, we let
* the system do it for us... - Jean II */ * the system do it for us... - Jean II
*/
return 0; return 0;
} }
...@@ -84,6 +85,7 @@ int __init irda_device_init( void) ...@@ -84,6 +85,7 @@ int __init irda_device_init( void)
static void leftover_dongle(void *arg) static void leftover_dongle(void *arg)
{ {
struct dongle_reg *reg = arg; struct dongle_reg *reg = arg;
net_warn_ratelimited("IrDA: Dongle type %x not unregistered\n", net_warn_ratelimited("IrDA: Dongle type %x not unregistered\n",
reg->type); reg->type);
} }
...@@ -107,7 +109,7 @@ void irda_device_set_media_busy(struct net_device *dev, int status) ...@@ -107,7 +109,7 @@ void irda_device_set_media_busy(struct net_device *dev, int status)
pr_debug("%s(%s)\n", __func__, status ? "TRUE" : "FALSE"); pr_debug("%s(%s)\n", __func__, status ? "TRUE" : "FALSE");
self = (struct irlap_cb *) dev->atalk_ptr; self = (struct irlap_cb *)dev->atalk_ptr;
/* Some drivers may enable the receive interrupt before calling /* Some drivers may enable the receive interrupt before calling
* irlap_open(), or they may disable the receive interrupt * irlap_open(), or they may disable the receive interrupt
...@@ -115,7 +117,8 @@ void irda_device_set_media_busy(struct net_device *dev, int status) ...@@ -115,7 +117,8 @@ void irda_device_set_media_busy(struct net_device *dev, int status)
* The IrDA stack is protected from this in irlap_driver_rcv(). * The IrDA stack is protected from this in irlap_driver_rcv().
* However, the driver calls directly the wrapper, that calls * However, the driver calls directly the wrapper, that calls
* us directly. Make sure we protect ourselves. * us directly. Make sure we protect ourselves.
* Jean II */ * Jean II
*/
if (!self || self->magic != LAP_MAGIC) if (!self || self->magic != LAP_MAGIC)
return; return;
...@@ -133,7 +136,6 @@ void irda_device_set_media_busy(struct net_device *dev, int status) ...@@ -133,7 +136,6 @@ void irda_device_set_media_busy(struct net_device *dev, int status)
} }
EXPORT_SYMBOL(irda_device_set_media_busy); EXPORT_SYMBOL(irda_device_set_media_busy);
/* /*
* Function irda_device_is_receiving (dev) * Function irda_device_is_receiving (dev)
* *
...@@ -169,7 +171,7 @@ static void __irda_task_delete(struct irda_task *task) ...@@ -169,7 +171,7 @@ static void __irda_task_delete(struct irda_task *task)
static void irda_task_delete(struct irda_task *task) static void irda_task_delete(struct irda_task *task)
{ {
/* Unregister task */ /* Unregister task */
hashbin_remove(tasks, (long) task, NULL); hashbin_remove(tasks, (long)task, NULL);
__irda_task_delete(task); __irda_task_delete(task);
} }
...@@ -231,7 +233,7 @@ static int irda_task_kick(struct irda_task *task) ...@@ -231,7 +233,7 @@ static int irda_task_kick(struct irda_task *task)
} }
irda_task_delete(task); irda_task_delete(task);
} else if (timeout > 0) { } else if (timeout > 0) {
irda_start_timer(&task->timer, timeout, (void *) task, irda_start_timer(&task->timer, timeout, (void *)task,
irda_task_timer_expired); irda_task_timer_expired);
finished = FALSE; finished = FALSE;
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment