From patchwork Fri Jun 15 21:55:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 10467725 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0C58060532 for ; Fri, 15 Jun 2018 21:55:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F09AE28E63 for ; Fri, 15 Jun 2018 21:55:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E5AB728EA2; Fri, 15 Jun 2018 21:55:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6DE5928E67 for ; Fri, 15 Jun 2018 21:55:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756620AbeFOVzX (ORCPT ); Fri, 15 Jun 2018 17:55:23 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:27179 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756510AbeFOVzW (ORCPT ); Fri, 15 Jun 2018 17:55:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1529099723; x=1560635723; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=Xs0nt0rELJT4Rh6oEL199IJOBymLWlY/vZvmt0VdDVk=; b=Cr3WbdyYjx5aGYrxhiu5AD4YIRyZR/mZvKeiVUzXePUJufVkdsAeVG2C /ykCwP5LMd/Z75a6Z9JI1nU0VetKDatoLHuAmwNZJAald5W/ZSfDrgm+V 5G7zVvWO2p+B+ijDVg6EsX9weQFv6WWcAsXuvSC9GascIKnYF6NHifyez 6v6M0zvITTFD2c4bnHwzbc+c3SyFn+RsmeJS33GCnLrzKJRKaVc5kurtC N/cnNPQQ9s0+PXYHk2tpI8X0LQHgXseyfigo6VEHz6HFgUK4uzhzMb5GR qDX58809BIVPE8ntr3/1IYWu9qB+4KBK5N9CYZyBiG1mCRORO6GyNvw0m Q==; X-IronPort-AV: E=Sophos;i="5.51,228,1526313600"; d="scan'208";a="80546943" Received: from h199-255-45-14.hgst.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 16 Jun 2018 05:55:23 +0800 Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep01.wdc.com with ESMTP; 15 Jun 2018 14:45:30 -0700 Received: from thinkpad-bart.sdcorp.global.sandisk.com ([10.111.67.248]) by uls-op-cesaip01.wdc.com with ESMTP; 15 Jun 2018 14:55:23 -0700 From: Bart Van Assche To: Jens Axboe Cc: linux-block@vger.kernel.org, Christoph Hellwig , Bart Van Assche , Matias Bjorling Subject: [PATCH 1/5] block: Remove a superfluous cast from blkdev_report_zones() Date: Fri, 15 Jun 2018 14:55:17 -0700 Message-Id: <20180615215521.27435-2-bart.vanassche@wdc.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180615215521.27435-1-bart.vanassche@wdc.com> References: <20180615215521.27435-1-bart.vanassche@wdc.com> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP No cast is necessary when assigning a non-void pointer to a void pointer. Signed-off-by: Bart Van Assche Reviewed-by: Damien Le Moal Cc: Matias Bjorling Cc: Christoph Hellwig --- block/blk-zoned.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/blk-zoned.c b/block/blk-zoned.c index 3d08dc84db16..92e6108487c4 100644 --- a/block/blk-zoned.c +++ b/block/blk-zoned.c @@ -200,7 +200,7 @@ int blkdev_report_zones(struct block_device *bdev, /* Get header in the first page */ ofst = 0; if (!nr_rep) { - hdr = (struct blk_zone_report_hdr *) addr; + hdr = addr; nr_rep = hdr->nr_zones; ofst = sizeof(struct blk_zone_report_hdr); }