Staging: media: lirc: Use unsigned int instead unsigned
authorMihaela Muraru <mihaela.muraru21@gmail.com>
Tue, 11 Oct 2016 08:15:03 +0000 (11:15 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Oct 2016 08:26:27 +0000 (10:26 +0200)
This patch fixes a WARNING: Prefer 'unsigned int' to bare use of
'unsigned', found by checkpatch.pl. By fixing this the types of the
parameters become more explicit.

Signed-off-by: Mihaela Muraru <mihaela.muraru21@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/lirc/lirc_zilog.c

index 3551aed589c010d5961e9e2f7672d6097a758232..34aac3e2eb871faa957ebb10765547a3a4cf3c1f 100644 (file)
@@ -1157,8 +1157,8 @@ static ssize_t write(struct file *filep, const char __user *buf, size_t n,
 
                /* Send the code */
                if (ret == 0) {
-                       ret = send_code(tx, (unsigned)command >> 16,
-                                           (unsigned)command & 0xFFFF);
+                       ret = send_code(tx, (unsigned int)command >> 16,
+                                           (unsigned int)command & 0xFFFF);
                        if (ret == -EPROTO) {
                                mutex_unlock(&ir->ir_lock);
                                mutex_unlock(&tx->client_lock);