aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide
diff options
context:
space:
mode:
authorConnor Hansen <cmdkhh@gmail.com>2011-06-11 15:06:48 -0700
committerDavid S. Miller <davem@davemloft.net>2011-06-11 15:06:48 -0700
commit3307d0d83b7bf636dc6dd2aa4a584d0f52cc185b (patch)
tree69a8886e0cd21e6369fd196e237972a5fbfcaefc /drivers/ide
parent56a210526adb2854d5b7c398a40260720390ee05 (diff)
downloadkernel_goldelico_gta04-3307d0d83b7bf636dc6dd2aa4a584d0f52cc185b.zip
kernel_goldelico_gta04-3307d0d83b7bf636dc6dd2aa4a584d0f52cc185b.tar.gz
kernel_goldelico_gta04-3307d0d83b7bf636dc6dd2aa4a584d0f52cc185b.tar.bz2
ide-cd: signedness warning fix again
One of the legit warnings 'make W=3 drivers/ide/ide-cd.c' generates is: drivers/ide/ide-cd.c: In function ide_cd_do_request drivers/ide/ide-cd.c:828:2: warning: conversion to int from \ unsigned int may change the sign of the result drivers/ide/ide-cd.c:833:2: warning: conversion to int from \ unsigned int may change the sign of the result nsectors is declared int, should be unsigned int. blk_rq_sectors() returns unsigned int, and ide_complete_rq expects unsigned int as well. Fixes both warnings. Signed-off-by: Connor Hansen <cmdkhh@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ide')
-rw-r--r--drivers/ide/ide-cd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c
index 144d272..04b0956 100644
--- a/drivers/ide/ide-cd.c
+++ b/drivers/ide/ide-cd.c
@@ -778,7 +778,8 @@ static ide_startstop_t ide_cd_do_request(ide_drive_t *drive, struct request *rq,
sector_t block)
{
struct ide_cmd cmd;
- int uptodate = 0, nsectors;
+ int uptodate = 0;
+ unsigned int nsectors;
ide_debug_log(IDE_DBG_RQ, "cmd: 0x%x, block: %llu",
rq->cmd[0], (unsigned long long)block);