Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6483104rwb; Mon, 14 Nov 2022 22:01:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf5VZldP1Rz3ieEmy8EPOrxCWVCGVsYyo0AxiKwT0GLGBQwtcc5/przoCExLVS6T1hmMcUqu X-Received: by 2002:a17:902:9a48:b0:186:e222:9f05 with SMTP id x8-20020a1709029a4800b00186e2229f05mr2620910plv.61.1668492081289; Mon, 14 Nov 2022 22:01:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668492081; cv=none; d=google.com; s=arc-20160816; b=jZpdNqaE5UoOF6ytAp6pjqjBnucmy+6uXVY37+BDSy8QPTvmtwQ71SzrXgjPmm74Rh 0pSXp2L/XY39XpvpNs13YQqcReA0RW5xxvV5t3nK0CPRxBZS8sd8ZCfSdmiR8oTAGU4W fx7BbAcOFhPkgWP2LQUmkc2qiO2urSMcGYNqHmkknFgeQQJHbgbk6Ujo3A2oCT/w1lEY 0U3DtNxB2OTzWAkSuQOznktoeoNip6VFlnrMQUQghH5jTfhRdymsTmS/IPtaPoOlzguv DehQBgx5bWeJJZL8N87KcJrHt3XWrsiusPn30M4H7nl8H+3oYeqkucSVsY7hC8wwk7Pl V1TQ== 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=9YeYolUflLFPW/lmJoF4py+8fPwwTcizDjRjGpPLh4s=; b=Msfl2k+vWnJ3Mwb4snvZyuAU73OFGW7hXGvFTpmztAP0LuEPRfPJlqiqfw95nBBPSd ePq5xIa23bvfW31DG8P4ODjFWL+otT/Gc3CPbA9gTr8pb/RsdM9Pb2JHHMkIjtrZSxNa RD3EOUwhU+Ey+fh3ovoNaIs63A38hYKhtHwpx8GyRMDdkV5iVcty1ZO8Mb9By/xXQSQe MyPUQlh/IDQnkn5wQ3ZhzDW1b1jPUQdcsjjRqClGNvP02Sne6wpCcjbR+Vb5ZXZbVA9R HDFEt0WZh9IR5jAWr7PTvVhxBsOMjCaiPngRWaxT2kU3l76288hCJ2bjcclSxiwlbdWx 6ftg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w8-20020aa79548000000b00542f9f272ffsi10494845pfq.18.2022.11.14.22.01.06; Mon, 14 Nov 2022 22:01:21 -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 S231908AbiKOFjz (ORCPT + 88 others); Tue, 15 Nov 2022 00:39:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229664AbiKOFjp (ORCPT ); Tue, 15 Nov 2022 00:39:45 -0500 Received: from out199-7.us.a.mail.aliyun.com (out199-7.us.a.mail.aliyun.com [47.90.199.7]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 134C76463; Mon, 14 Nov 2022 21:39:43 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R191e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045170;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0VUs-Rax_1668490775; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VUs-Rax_1668490775) by smtp.aliyun-inc.com; Tue, 15 Nov 2022 13:39:39 +0800 From: Jiapeng Chong To: roderick.colenbrander@sony.com Cc: jikos@kernel.org, benjamin.tissoires@redhat.com, rydberg@bitmath.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] HID: playstation: remove unreachable code Date: Tue, 15 Nov 2022 13:39:20 +0800 Message-Id: <20221115053920.65318-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,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 The function dualshock4_get_calibration_data cannot execute hid_err, delete the invalid code. drivers/hid/hid-playstation.c:1766 dualshock4_get_calibration_data() warn: ignoring unreachable code. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3073 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/hid/hid-playstation.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/hid/hid-playstation.c b/drivers/hid/hid-playstation.c index bae3e712a562..a4106f760d1f 100644 --- a/drivers/hid/hid-playstation.c +++ b/drivers/hid/hid-playstation.c @@ -1763,8 +1763,6 @@ static int dualshock4_get_calibration_data(struct dualshock4 *ds4) ret = -EILSEQ; goto err_free; } - hid_err(hdev, "Failed to retrieve DualShock4 calibration info: %d\n", ret); - goto err_free; } else { break; } -- 2.20.1.7.g153144c