From: Mihaela Muraru Date: Tue, 11 Oct 2016 08:15:03 +0000 (+0300) Subject: Staging: media: lirc: Use unsigned int instead unsigned X-Git-Tag: v4.14-rc1~1919^2~597 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=51ea64c98d8f432d8553704faa7765935358580d;p=platform%2Fkernel%2Flinux-rpi.git Staging: media: lirc: Use unsigned int instead unsigned 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/media/lirc/lirc_zilog.c b/drivers/staging/media/lirc/lirc_zilog.c index 3551aed..34aac3e 100644 --- a/drivers/staging/media/lirc/lirc_zilog.c +++ b/drivers/staging/media/lirc/lirc_zilog.c @@ -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);