Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2253342pxm; Fri, 4 Mar 2022 12:23:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJz7XcjZDJkwDgJccngyW7cOJeJJk8odgRT6WSrtX/7H+3tAPsUNKT1pJcUb2BXuBpxH3vpW X-Received: by 2002:a05:6a00:1ad3:b0:4e1:5623:fdd with SMTP id f19-20020a056a001ad300b004e156230fddmr190809pfv.26.1646425430072; Fri, 04 Mar 2022 12:23:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646425430; cv=none; d=google.com; s=arc-20160816; b=mbph7xAFwtE4Z+YysjMQxHbV4NUEhrEyHf9CKrWnJuCgRhHUOwPXoKgD4YFQ7C5KZk WYf5UWGVSLCR6hXqySs1ckPp+nfiMRxLPjTmWXQjeTE1z54BvwqSQxgvXXZB+7DMvQe8 VWAqiGW7we1duchKHvTzW48Lliwmh2gQC2Be51UDA6XfNiHq17g3SrZv23NdlSvlCAa7 NJA9LGW0aoug72E4I7DhaHvGBPddaLVMIuR+KUv4euk4S6gkFdsbxrYUZjz7ryn7tadf JWkdNAZw7F5oA2gg2cFn1tgmliyMDjFRCRdtGOm92WjQONOawsn5Fpv+ZWdjO5Y/MvJN COuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Cqmk4RGtSaszMnquxc/oyP4l8w/hS4OYdIlhjeA7b+I=; b=HBEl6czGjOteN3RgfMOx5ejf3svSIHNfGGhC8HZl7I4ZQE13DWBV2YFz9qVC++/zYq UTP6qz9zyjl+B6uy0t1eoUGkseMlGVihMHWrkggRgw+DLW7KsFZqqAjCk2EvMShq8MrK yPXJI1VWXcMHtEsJCZxYOLn70fCbPnoHRp2CFL5aCJABwQmBA3wQb2LkJqQ0JEeLXovv LVK+97J/fjklmo9cPjuVqEvImpAiOimmp2G80tzAVJo5jFOp6J1aCbXeVI2u8JcLPpXr jY8TrgopJmIR59kUvV+ojC6ocIRtqL6wFR09552sdm2OJEQK1GUp/7SvX0QMJnfPsmvH CpgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=U1Rgy9ym; spf=softfail (google.com: domain of transitioning linux-ext4-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id s1-20020a170902b18100b001517777d1dcsi5145367plr.216.2022.03.04.12.23.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 12:23:50 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-ext4-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=U1Rgy9ym; spf=softfail (google.com: domain of transitioning linux-ext4-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 175326F490; Fri, 4 Mar 2022 11:32:30 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241452AbiCDSCM (ORCPT + 99 others); Fri, 4 Mar 2022 13:02:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241441AbiCDSCH (ORCPT ); Fri, 4 Mar 2022 13:02:07 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69A6C1B989D; Fri, 4 Mar 2022 10:01:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=Cqmk4RGtSaszMnquxc/oyP4l8w/hS4OYdIlhjeA7b+I=; b=U1Rgy9ymsIhudcOwIcRsW6TPER B5aghzwGY4dOoBAG/YwLNPSvd1UX0rCrr0WBkiHyO7In/L5oPLREx9/F71/TXI1ykQ336o6YIQw3w xqfzAIeNd8FW8Wa0I4PUk+SC8DxILJuUVIROwi0vGFxqR2AqqTIK8P/bvBur0VOVMivaxQ2gJtaY9 P+6dLlEIIchOWLolT0/jtRd6YoJf5wKW4xyOa8vZ2qge3gZOvh1H8W8Ewj0ZULAgukcd4idHfhGnj 3R0kGO28E6P+uTeSyKpIDnXDWqQMP/sEB+CpOco6tyimwoK13WeR5lbHBiOFDsNay7h8QAyV27hcU TUB/FbWw==; Received: from [2001:4bb8:180:5296:cded:8d4b:ace6:f3c] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nQCEt-00BUlR-8F; Fri, 04 Mar 2022 18:01:15 +0000 From: Christoph Hellwig To: Jens Axboe Cc: Song Liu , "Theodore Ts'o" , linux-block@vger.kernel.org, dm-devel@redhat.com, linux-raid@vger.kernel.org, linux-ext4@vger.kernel.org Subject: [PATCH 03/10] pktcdvd: remove a pointless debug check in pkt_submit_bio Date: Fri, 4 Mar 2022 19:00:58 +0100 Message-Id: <20220304180105.409765-4-hch@lst.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220304180105.409765-1-hch@lst.de> References: <20220304180105.409765-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org ->queuedata is set up in pkt_init_queue, so it can't be NULL here. Signed-off-by: Christoph Hellwig --- drivers/block/pktcdvd.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c index 623df4141ff3f..a52bbedd2f33d 100644 --- a/drivers/block/pktcdvd.c +++ b/drivers/block/pktcdvd.c @@ -2400,18 +2400,11 @@ static void pkt_make_request_write(struct request_queue *q, struct bio *bio) static void pkt_submit_bio(struct bio *bio) { - struct pktcdvd_device *pd; - char b[BDEVNAME_SIZE]; + struct pktcdvd_device *pd = bio->bi_bdev->bd_disk->queue->queuedata; struct bio *split; blk_queue_split(&bio); - pd = bio->bi_bdev->bd_disk->queue->queuedata; - if (!pd) { - pr_err("%s incorrect request queue\n", bio_devname(bio, b)); - goto end_io; - } - pkt_dbg(2, pd, "start = %6llx stop = %6llx\n", (unsigned long long)bio->bi_iter.bi_sector, (unsigned long long)bio_end_sector(bio)); -- 2.30.2