Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp202955iob; Mon, 2 May 2022 17:06:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwY+f/AijpabEJpavgo68IO/chFWhepMHWph1aHJwjH/JxOdSG4Rgma9k4ZzO51N2SFwtI/ X-Received: by 2002:a17:90b:704:b0:1d7:367a:f16b with SMTP id s4-20020a17090b070400b001d7367af16bmr1834000pjz.197.1651536392650; Mon, 02 May 2022 17:06:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651536392; cv=none; d=google.com; s=arc-20160816; b=0Wvx6hQei8ft/fIblzkIamkTGvJzVISXuedo2tI4VGOV2AHJU7E6a1uK7LDwpoB+/Z 3/3UaIiu6H3x+C3P+7fQDURNmdQmgIvZvlkYFpoAWu07VSuhi5ds962EBBsb2XtMAD35 sNB9CLs5Od7gvwG4oSgjsEk1V7s9NRADZkOFAkOcqsKVvnjyILk+G0HXeJchGKLfH1yg oIiMjaCzdRh7H5tgkDsOfduZVKr+sIWDjViEwjpQpwuwuIcM/N/oTJJC39DBQhMYTBmc BRQrQpADm7XFBqd+8+Thl1R0160SNygBb0WxJVBV8cmxPBOg5oJq8lX+p5guUz80wPY2 oEqQ== 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=wNYpWGO+GrpCk66Nh5RWJKF3WobSkmY4PbioKCEWPFY=; b=rYRAxq9M/rw8+gTcm73RF1+I3GbkPTepvoe61myz4BlFtP3UjUVH/osuLbtgSesYxe e6rILMtBGKGyrNVVm0Fr+lH35TB2fo8J2Y5bU3hTE8jAkYSzxGkg6qfFtnSf9cifzFOd /0h+INnR117KN1WfKlDa1eWYmES9N8KUHVIKibadyCL1+89Rvbrm0lvT+GZ9c17gU5Y9 UMBKyn8xKwRcEC+NxUIp3LlDYl7a1by+TeToSBOJXvUH+KzyErPTjx0Z/yT1A3HefZVr 4g73rOOwyo7iVpZ9IS6dglkz+ICyWTxnUcLZAD1U6FzHlYCDjGU2mHdbktRH9HaEEgfg hkAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="TJ1U/wRo"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q22-20020a638c56000000b003c14551f779si14969888pgn.842.2022.05.02.17.06.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 17:06:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="TJ1U/wRo"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6554B65AE; Mon, 2 May 2022 17:05:55 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379330AbiD2QyZ (ORCPT + 99 others); Fri, 29 Apr 2022 12:54:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379313AbiD2QyR (ORCPT ); Fri, 29 Apr 2022 12:54:17 -0400 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41CC9D5548 for ; Fri, 29 Apr 2022 09:50:59 -0700 (PDT) Received: by mail-wr1-x432.google.com with SMTP id q23so11550895wra.1 for ; Fri, 29 Apr 2022 09:50:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wNYpWGO+GrpCk66Nh5RWJKF3WobSkmY4PbioKCEWPFY=; b=TJ1U/wRoz5C/CERNp5RQJqGMOkIBsbtoy4QIiJZD2TedW6yrrMFq5+yg0MzV2ILoio HQj2dVF5V4fP2t/zzQ87bHb2qgi5uSu0zJnKVcQGK1tL7neXv3WTRUNrBo9IOp1pLFM+ Bv7TvBXEScmzPJ+y+WcIsefaUU7u8HjjvSlASAbmlC5EnBw/AmMB+06rMDXmSI/9RDgN gTjYrnx4Ek/xcub5GQh6Dx3YKLZpOKOCuftfqTmSuOWUIfTEEkMNgKSLCtZ6xboAQIWP h8JgV+Na8iaYc1azsxTv9V/5xIRR8TSqQG2VqqxHX7e9gUahJLBFWIXnb77/kSzD+q0d mKeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wNYpWGO+GrpCk66Nh5RWJKF3WobSkmY4PbioKCEWPFY=; b=d78b6jK4aZHsN2HnDNCbGedgkMw7SP6Az9Q9TCKQRN7qje9A0XVeLvKft8Ve4FRvKp uNkpDt60a9sJ4nDeWe5VS0mqLTDPdysuzXmiA5YGhA6gw9LDU/TuH6U75vYLJuFyh1V5 G9JDcDNsOewin5WU/OLH6p4mBLC90C42BXmaWMesc+5MOJGsdhV+6ZJsDHfFn7EyarnV PEo4VIJWXV3Jmppl3vAfJ77VZz4uZ8Y8PA99Iw/bZ7kDB5CYZ8sSB8O+Rpqap60T9J5y bNUw8ayBLkJX+U+jB52xxC8kaeVhACN0B4TK3fl7zNXNdEksqkyjG1vkN9qWbcpdeMCJ iitw== X-Gm-Message-State: AOAM533EbcMzIeiFEfeN9Y9sWDAHyeOths7+uw+Ly4pBlsxAz+ky8iLD 62SHD1Oeou1zk7YWEuitfCrXew== X-Received: by 2002:a05:6000:1685:b0:20a:ea43:9f93 with SMTP id y5-20020a056000168500b0020aea439f93mr45210wrd.160.1651251057818; Fri, 29 Apr 2022 09:50:57 -0700 (PDT) Received: from srini-hackbox.lan (cpc90716-aztw32-2-0-cust825.18-1.cable.virginm.net. [86.26.103.58]) by smtp.gmail.com with ESMTPSA id a16-20020a056000051000b00207b5d9f51fsm2848941wrf.41.2022.04.29.09.50.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Apr 2022 09:50:57 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Yang Li , Abaci Robot , Srinivas Kandagatla Subject: [PATCH 2/2] slimbus: qcom: Remove unnecessary print function dev_err() Date: Fri, 29 Apr 2022 17:50:51 +0100 Message-Id: <20220429165051.6187-3-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20220429165051.6187-1-srinivas.kandagatla@linaro.org> References: <20220429165051.6187-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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-kernel@vger.kernel.org From: Yang Li The print function dev_err() is redundant because platform_get_irq_byname() already prints an error. Eliminate the follow coccicheck warning: ./drivers/slimbus/qcom-ctrl.c:514:2-9: line 514 is redundant because platform_get_irq() already prints an error Reported-by: Abaci Robot Signed-off-by: Yang Li Signed-off-by: Srinivas Kandagatla --- drivers/slimbus/qcom-ctrl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/slimbus/qcom-ctrl.c b/drivers/slimbus/qcom-ctrl.c index ec58091fc948..c0c4f895d76e 100644 --- a/drivers/slimbus/qcom-ctrl.c +++ b/drivers/slimbus/qcom-ctrl.c @@ -510,10 +510,8 @@ static int qcom_slim_probe(struct platform_device *pdev) } ctrl->irq = platform_get_irq(pdev, 0); - if (ctrl->irq < 0) { - dev_err(&pdev->dev, "no slimbus IRQ\n"); + if (ctrl->irq < 0) return ctrl->irq; - } sctrl = &ctrl->ctrl; sctrl->dev = &pdev->dev; -- 2.21.0