From: Benny Halevy <bhalevy@xxxxxxxxxxx> otherwise checking for ret < 0 is futile. Signed-off-by: Benny Halevy <bhalevy@xxxxxxxxxxx> --- fs/nfs/blocklayout/blocklayoutdev.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/fs/nfs/blocklayout/blocklayoutdev.c b/fs/nfs/blocklayout/blocklayoutdev.c index ef39c36..a866f5c 100644 --- a/fs/nfs/blocklayout/blocklayoutdev.c +++ b/fs/nfs/blocklayout/blocklayoutdev.c @@ -105,7 +105,8 @@ nfs4_blk_add_block_disk(struct device *cdev, static char *claim_ptr = "I belong to pnfs block driver"; struct block_device *bdev; struct gendisk *gd; - unsigned int major, minor, ret = 0; + unsigned int major, minor; + int ret; dev_t dev; dprintk("%s enter \n", __func__); -- 1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html