Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp46429pxb; Tue, 10 Nov 2020 19:19:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJwPMGqci0PCVK8WpUDTNUoSKcBJ9PvQHmeidNmbO2f6xqFZ2R1McRRNeNOPvJFvJeIVgM9O X-Received: by 2002:a17:906:c407:: with SMTP id u7mr23479963ejz.261.1605064785590; Tue, 10 Nov 2020 19:19:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605064785; cv=none; d=google.com; s=arc-20160816; b=Bhi80V5GIeOsxQttshLbR2CE5aI+bdHHo0Rj6ErzrYrmJxP6ujCbn2wH7wlCu6WAUG fAb0XysQPYWB1rJO8rui/dmAp9KH/Lipvcwwd2/9A7sRpoyAfnjnALh3gWJb7wPUGDFo 8x7aDvJ99sCmFhQUsZW2xP7Mw4e76hpteTY0RoW6FAQDhzAq8Y28r5Jy8DxKqwXxpGfp bDqfEt1JaOImqpogzLOG7CkZA3yfWBq9SjYqwj4lOpN+dJz9I0KovvouFYCyQo7dg74P SfHVNTEUm85YABwt+B8sBHj6LB4Sz9A5GiezCMP8OEVLAmtxAvelAkAVNBEEudCbbIjb 2LOA== 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 :message-id:date:subject:cc:to:from; bh=gYDQHHwZWu9Kxlsru68TB+IdzN0ZMzE4Cn1pHxnj7PM=; b=t2ChpnNtBD17JM5sbr1iUG0H8xq08nfWp+HHaJYKG+KehJAE0rpZJ1/TQ6Z1sPvuKS LIuwxV9ps2Jaw0ztbSzSiIP++eQbbk+aD21Poy/rI2arDwDvg/OMSeCpM0hpiql+6S1u wt0JftUWjMDvjApuKk6xh/sH3YMDXeQkD9Ot+EKIDN/gA2xg/qn7n38k/xk23TnVc3rG 6ieNRVGe1khkjXf8vzjQ+bYEOZNaIgp2xSs+SBGSk/2M7EH0N5k/ExuN0aPggjrIObNp zZccnc5C7b/F+qsPLDXYyyMJOsGLtVUqLYOC6xagH2foIasd+C/NRmZL6gjGtMFroqI9 Zvog== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t8si559181edj.6.2020.11.10.19.19.23; Tue, 10 Nov 2020 19:19:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731900AbgKKDRN (ORCPT + 99 others); Tue, 10 Nov 2020 22:17:13 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:7879 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726307AbgKKDRG (ORCPT ); Tue, 10 Nov 2020 22:17:06 -0500 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4CW8zD2zbVz74yF; Wed, 11 Nov 2020 11:16:56 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Wed, 11 Nov 2020 11:16:54 +0800 From: Qinglang Miao To: Santosh Shilimkar CC: , , Qinglang Miao Subject: [PATCH] soc: ti: set ret to -ENODEV when fails to init queue_pools Date: Wed, 11 Nov 2020 11:22:04 +0800 Message-ID: <20201111032204.17971-1-miaoqinglang@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Forget to set error code when queue_pools fails to be inited, fix it by setting ret to -ENODEV. Remove the redundant blank by the way. Fixes: 41f93af900a2 ("soc: ti: add Keystone Navigator QMSS driver") Reported-by: Hulk Robot Signed-off-by: Qinglang Miao --- drivers/soc/ti/knav_qmss_queue.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/soc/ti/knav_qmss_queue.c b/drivers/soc/ti/knav_qmss_queue.c index a460f201bf8e..a6a2138d5c29 100644 --- a/drivers/soc/ti/knav_qmss_queue.c +++ b/drivers/soc/ti/knav_qmss_queue.c @@ -1851,9 +1851,10 @@ static int knav_queue_probe(struct platform_device *pdev) if (ret) goto err; - regions = of_get_child_by_name(node, "descriptor-regions"); + regions = of_get_child_by_name(node, "descriptor-regions"); if (!regions) { dev_err(dev, "descriptor-regions not specified\n"); + ret = -ENODEV; goto err; } ret = knav_queue_setup_regions(kdev, regions); -- 2.23.0