Skip to contentSkip to conversation

staging: irda: fix type from "unsigned" to "unsigned int"

PATCH In review JI-HUN KIM 2 participants 2 messages Dec 27, 2017

Subsystems (4)
lore
Share & tools
lore

JI-HUN KIM

author
#0 lore raw

PATCH 1/3 staging: irda: fix type from "unsigned" to "unsigned int"

Clean up checkpatch warning:
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'

---
 drivers/staging/irda/drivers/esi-sir.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/irda/drivers/esi-sir.c +2 -2
index eb7aa64..a12cf55 100644
@@ -39,7 +39,7 @@
 
 static int esi_open(struct sir_dev *);
 static int esi_close(struct sir_dev *);
-static int esi_change_speed(struct sir_dev *, unsigned);
+static int esi_change_speed(struct sir_dev *, unsigned int);
 static int esi_reset(struct sir_dev *);
 
 static struct dongle_driver esi = {
@@ -93,7 +93,7 @@ static int esi_close(struct sir_dev *dev)
  * Apparently (see old esi-driver) no delays are needed here...
  *
  */
-static int esi_change_speed(struct sir_dev *dev, unsigned speed)
+static int esi_change_speed(struct sir_dev *dev, unsigned int speed)
 {
 	int ret = 0;
 	int dtr, rts;
Signature · 1 line
2.10.1 (Apple Git-78)
maintainer
#1 lore raw
Quoted 7 lines · JI-HUN KIM

Clean up checkpatch warning:
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'

---
 drivers/staging/irda/drivers/esi-sir.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Please read drivers/staging/irda/TODO

sorry.

greg k-h