{"id":809074,"url":"http://patchwork.ozlabs.org/api/patches/809074/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/1504365337-32519-3-git-send-email-bmeng.cn@gmail.com/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/projects/18/?format=json","name":"U-Boot","link_name":"uboot","list_id":"u-boot.lists.denx.de","list_email":"u-boot@lists.denx.de","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<1504365337-32519-3-git-send-email-bmeng.cn@gmail.com>","list_archive_url":null,"date":"2017-09-02T15:15:37","name":"[U-Boot,3/3] nvme: Remove dead codes in nvme_setup_io_queues()","commit_ref":"9e18eae2760d20f04f97ce190036e0c6ee67e43d","pull_url":null,"state":"accepted","archived":false,"hash":"f49261b68d4a8cc2c486e4e1f42c0427ad5170fe","submitter":{"id":64981,"url":"http://patchwork.ozlabs.org/api/people/64981/?format=json","name":"Bin Meng","email":"bmeng.cn@gmail.com"},"delegate":{"id":3651,"url":"http://patchwork.ozlabs.org/api/users/3651/?format=json","username":"trini","first_name":"Tom","last_name":"Rini","email":"trini@ti.com"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/1504365337-32519-3-git-send-email-bmeng.cn@gmail.com/mbox/","series":[{"id":1158,"url":"http://patchwork.ozlabs.org/api/series/1158/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=1158","date":"2017-09-02T15:15:35","name":"[U-Boot,1/3] nvme: Fix wrong ndev->queues memset","version":1,"mbox":"http://patchwork.ozlabs.org/series/1158/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/809074/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/809074/checks/","tags":{},"related":[],"headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"Zn3vFRVi\"; dkim-atps=neutral"],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xl036483Zz9t0F\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSun,  3 Sep 2017 01:12:34 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid 38FB2C21F44; Sat,  2 Sep 2017 15:11:51 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id AC4BDC21F17;\n\tSat,  2 Sep 2017 15:11:24 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid D428FC21DD0; Sat,  2 Sep 2017 15:11:21 +0000 (UTC)","from mail-it0-f65.google.com (mail-it0-f65.google.com\n\t[209.85.214.65])\n\tby lists.denx.de (Postfix) with ESMTPS id 6FA0CC21E41\n\tfor <u-boot@lists.denx.de>; Sat,  2 Sep 2017 15:11:18 +0000 (UTC)","by mail-it0-f65.google.com with SMTP id k189so1151302itk.1\n\tfor <u-boot@lists.denx.de>; Sat, 02 Sep 2017 08:11:18 -0700 (PDT)","from ala-d2121-lx1.wrs.com (unknown-156-139.windriver.com.\n\t[147.11.156.139]) by smtp.gmail.com with ESMTPSA id\n\tc8sm1372273ioj.53.2017.09.02.08.11.16\n\t(version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tSat, 02 Sep 2017 08:11:16 -0700 (PDT)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-0.0 required=5.0 tests=FREEMAIL_FROM,\n\tRCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,\n\tT_DKIM_INVALID\n\tautolearn=unavailable autolearn_force=no version=3.4.0","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:subject:date:message-id:in-reply-to:references;\n\tbh=r6kdZP8MegZRSoRud5BHb9nHgD+6DhEUodUtnphzsAI=;\n\tb=Zn3vFRVibMhHuMEvfT0aNs1xcY5c+GOdkDymwKY6Vpvu7DWOLsPOwzOH0zYBeSXIuO\n\tRM4mRU2DS6LBiv09zadHOembuETs/auRSLka3fnNQvFLtnWNzasFY4o/RU6Mkjoq5IpJ\n\tV1i1CbGKvRrdOITUYhKLVqtHULtAa766iPaMcWq3Y0K7Woilo/rEtam10dJfW9RtEghP\n\tVwaIG8XxntCWx3vBSea36f3eBTQ7O1JhXq3Z/PGw9o1pGiidwFshozMrC8dB3Vg71s0P\n\tXVVESTxBmxONan8UkArbmMlP+nV/iy4nAZoU4IXqekoYvElK0vPS1oU3Wf06TzXUt/Hg\n\taLAA==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=r6kdZP8MegZRSoRud5BHb9nHgD+6DhEUodUtnphzsAI=;\n\tb=HzfL30II8xhT5Q5nX5zCA4iS0SlxZ+kJ4QSckaQNE/5HwwMCk+emnMzEr3d6GwQtYt\n\t+q5YPhiS4gfaL6tg31b3oM6cP59byplKJOLIBux9xuKTE2GX4PhYYV5t55Gy6MY98x++\n\tHauoZ+qVTBqUTrctWxkgNkQMV7KAsB+5HjKXdH/DWgDvDFL97mlA/tZ3zKq8uMvPflVj\n\trrSqaAFZHkGT3Y0soEQzAouYCNR4ZveC8EGpSRbUTQ5cW6zIgQKuIkOrVSg909grmX3x\n\tZNbL8JZM+w2CUkfcHnkEY4ycUluZaGE3n5WdcMRUf21qPwYsPyXjvI05hAvawCsyarO/\n\taeKg==","X-Gm-Message-State":"AHPjjUiLq9EdacIgPhfBWGQYUBLQV8xWofl27lrP00akzdLUDvevG8em\n\tY5nnCWvNzqqvDPOb","X-Google-Smtp-Source":"ADKCNb7JAv4fme3MWaOS+k7q+EEsJ1bVmq6pH9F6Gab2Fh6basiBfStaCUR1/tplBkNG3JEa+Twgkg==","X-Received":"by 10.36.176.75 with SMTP id b11mr1754993itj.101.1504365077460; \n\tSat, 02 Sep 2017 08:11:17 -0700 (PDT)","From":"Bin Meng <bmeng.cn@gmail.com>","To":"Tom Rini <trini@konsulko.com>, U-Boot Mailing List <u-boot@lists.denx.de>","Date":"Sat,  2 Sep 2017 08:15:37 -0700","Message-Id":"<1504365337-32519-3-git-send-email-bmeng.cn@gmail.com>","X-Mailer":"git-send-email 1.7.9.5","In-Reply-To":"<1504365337-32519-1-git-send-email-bmeng.cn@gmail.com>","References":"<1504365337-32519-1-git-send-email-bmeng.cn@gmail.com>","Subject":"[U-Boot] [PATCH 3/3] nvme: Remove dead codes in\n\tnvme_setup_io_queues()","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.18","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<http://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>"},"content":"Execution cannot reach this statement: \"nr_io_queues = result;\"\n\nReported-by: Coverity (CID: 166731)\nSigned-off-by: Bin Meng <bmeng.cn@gmail.com>\n---\n\n drivers/nvme/nvme.c | 3 ---\n 1 file changed, 3 deletions(-)","diff":"diff --git a/drivers/nvme/nvme.c b/drivers/nvme/nvme.c\nindex 59d54eb..1c3519b 100644\n--- a/drivers/nvme/nvme.c\n+++ b/drivers/nvme/nvme.c\n@@ -562,9 +562,6 @@ static int nvme_setup_io_queues(struct nvme_dev *dev)\n \tif (result <= 0)\n \t\treturn result;\n \n-\tif (result < nr_io_queues)\n-\t\tnr_io_queues = result;\n-\n \tdev->max_qid = nr_io_queues;\n \n \t/* Free previously allocated queues */\n","prefixes":["U-Boot","3/3"]}