s390/dasd: remove unneeded code
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Mon, 26 Jun 2017 17:26:55 +0000 (19:26 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 5 Jul 2017 05:35:29 +0000 (07:35 +0200)
commit4bca698ffe7e511e79b3f2cc5e7293c046549154
treed05b5fc3fa54741c3ce10b120754aab4ffd817b9
parentcd0ae1d395a8bfc208437ce612413e58f5137499
s390/dasd: remove unneeded code

Fix these set but not used warnings:

drivers/s390/block/dasd.c:3933:6: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
drivers/s390/block/dasd_alias.c:757:6: warning: variable 'rc' set but not used [-Wunused-but-set-variable]

In addition to that remove the test if an unsigned is < 0:

drivers/s390/block/dasd_devmap.c:153:11: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/block/dasd.c
drivers/s390/block/dasd_alias.c
drivers/s390/block/dasd_devmap.c