Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932342AbbGQH1P (ORCPT ); Fri, 17 Jul 2015 03:27:15 -0400 Received: from cantor2.suse.de ([195.135.220.15]:34237 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932295AbbGQH1K (ORCPT ); Fri, 17 Jul 2015 03:27:10 -0400 From: Hannes Reinecke To: Jens Axboe Cc: Alexander Graf , Christoph Hellwig , linux-kernel@vger.kernel.org, Hannes Reinecke Subject: [PATCH 2/4] loop: Remove unused 'bdev' argument from loop_set_capacity Date: Fri, 17 Jul 2015 09:27:05 +0200 Message-Id: <1437118027-94602-3-git-send-email-hare@suse.de> X-Mailer: git-send-email 1.8.5.2 In-Reply-To: <1437118027-94602-1-git-send-email-hare@suse.de> References: <1437118027-94602-1-git-send-email-hare@suse.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1175 Lines: 35 Signed-off-by: Hannes Reinecke --- drivers/block/loop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/block/loop.c b/drivers/block/loop.c index 62d74c0..fce13bd 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c @@ -1137,7 +1137,7 @@ loop_get_status64(struct loop_device *lo, struct loop_info64 __user *arg) { return err; } -static int loop_set_capacity(struct loop_device *lo, struct block_device *bdev) +static int loop_set_capacity(struct loop_device *lo) { if (unlikely(lo->lo_state != Lo_bound)) return -ENXIO; @@ -1186,7 +1186,7 @@ static int lo_ioctl(struct block_device *bdev, fmode_t mode, case LOOP_SET_CAPACITY: err = -EPERM; if ((mode & FMODE_WRITE) || capable(CAP_SYS_ADMIN)) - err = loop_set_capacity(lo, bdev); + err = loop_set_capacity(lo); break; default: err = lo->ioctl ? lo->ioctl(lo, cmd, arg) : -EINVAL; -- 1.8.5.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/