From patchwork Tue Feb 7 07:08:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ziyang Zhang X-Patchwork-Id: 5059 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2695862wrn; Mon, 6 Feb 2023 23:13:38 -0800 (PST) X-Google-Smtp-Source: AK7set/s1bHM6JCyY+iGCd8VZsm78cNf5+5YjmrSm4yA3FN2YWdsV5EODSrqPtdQHNa1E2nWJia9 X-Received: by 2002:a62:1d0a:0:b0:5a7:8df5:f860 with SMTP id d10-20020a621d0a000000b005a78df5f860mr1149725pfd.5.1675754018598; Mon, 06 Feb 2023 23:13:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675754018; cv=none; d=google.com; s=arc-20160816; b=e3fTezG3T5HN7UKIljpCpPlVjVfCspHjfRf4gOo0AnYWFCfuDmOSfAlKnG2THzMNwd jnJSfVKiG4f0vS/iyy6m9YKpj0IiDj3dCWGRlwgtqepE191lGgTDDVqkKOyoDKYaVbsd WDbMM1T4CtWMqAMO7Pus126+1vEfS/KneWAnt4LVozWFKX5/ZEx30tjGPiAVgaYMJBrv UjzrofI0fjlQ8KlMPD0rzKvuNuEx7DeuWn0tu/JJN+uhDqdlBUN9/Uevk2uJDYW1waKh h8gWIdkzDZefEIu/1ALfhyTG3jkQFQyhn750MeSLG+7YPQyWvbknW1E5LzE5bvdQH38y /H5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=SfNnqprB+tV3Slp81YIhDNr5PmYWm+8N/1JS7Re8IOU=; b=G7/hFhgX6+INUOi63X+TE7nu4mInm5TP6+B4LWGpYem6SaxenGzxWnLS7iKWWgju4U V5DJ+vdg+z/SgaBh/zJEH9JQcFx0CXb6+07H3uHavDiqW9qy07sgbKNhWJ4mTfUDGWRL AukZ01D6TZvCCYdlc5EYYzd9jRyU8/t3ZPXqVCOQqI8a349k08HmEIn6UpvGqIv+dQ+M nhwdNtyxWS0s0oZckkFmdnFZSwvDjzHGr3jdqPl3je0HNgtHRfqgWqUins58rj7mNdrL YLxptCiRzo91DqH1qXQgzO1wioXcPkFOohn1QPvyagujRph6/VHIUnMP/rMvSg73Dxak 1ANg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v5-20020a626105000000b00593c3cee537si14609729pfb.139.2023.02.06.23.13.26; Mon, 06 Feb 2023 23:13:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230274AbjBGHJG (ORCPT + 99 others); Tue, 7 Feb 2023 02:09:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229574AbjBGHJE (ORCPT ); Tue, 7 Feb 2023 02:09:04 -0500 Received: from out30-118.freemail.mail.aliyun.com (out30-118.freemail.mail.aliyun.com [115.124.30.118]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37970423C; Mon, 6 Feb 2023 23:09:02 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R621e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=ziyangzhang@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0Vb64zE8_1675753736; Received: from localhost.localdomain(mailfrom:ZiyangZhang@linux.alibaba.com fp:SMTPD_---0Vb64zE8_1675753736) by smtp.aliyun-inc.com; Tue, 07 Feb 2023 15:09:00 +0800 From: Ziyang Zhang To: axboe@kernel.dk, ming.lei@redhat.com Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, joseph.qi@linux.alibaba.com, Ziyang Zhang Subject: [PATCH RESEND 0/3] cleanup for ublk Date: Tue, 7 Feb 2023 15:08:36 +0800 Message-Id: <20230207070839.370817-1-ZiyangZhang@linux.alibaba.com> X-Mailer: git-send-email 2.18.4 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham 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-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757155246578022283?= X-GMAIL-MSGID: =?utf-8?q?1757155445639842708?= Hi, this series contain cleanup for code and comment of ublk including removing unnecessary NULL check, unused variable and comment fix. Ziyang Zhang (3): ublk: remove unnecessary NULL check in ublk_rq_has_data() ublk: mention WRITE_ZEROES in comment of ublk_complete_rq() ublk: pass NULL to blk_mq_alloc_disk() as queuedata drivers/block/ublk_drv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)