Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2104904rwd; Tue, 13 Jun 2023 20:26:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5wKeeHOIGtggrIe43zIQrGBjSvYY8BC8aaFczOy7o6F0jLtlxPDktGuF42sM4GgEgeOqK8 X-Received: by 2002:a05:6808:1703:b0:39e:75cc:9b80 with SMTP id bc3-20020a056808170300b0039e75cc9b80mr2499412oib.24.1686713160974; Tue, 13 Jun 2023 20:26:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686713160; cv=none; d=google.com; s=arc-20160816; b=CXJcRQO0X6S+kNb5XErxZV1TupIWl5tJIn6wcjw36BbleXSDHntuG3XEv5KlPuZjrR jw+BgCZU6aS5tEhGDPiu/AXxINl8KvDjJ6c9WprenuzYOEAMl7Y5PRYMlFxX998PqDGc rGSSv8oe0jtLsi/luhZnV9Mrx0qtMnXiVhw95TJ8tSXAfuZ2QqfNG9bKmdO5IgAJ+8H8 KlegwS+rr1PXOExCzKkKIRFxe3va/trYWQlKl/J8WM7KHKYk4TfC8jkxU18fnOHYV6op WtFJLpQiGUOlCq6aaj8QP6EFOVy6/lCLY4e4W4pHuNXmS84xBDnJUS5fzrKNh3v03R1Q tHrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=f7CM9ILH7fenuanPHesylHk1s6AyDGOYura9BcI/11A=; b=z+cZDPp4sLuHMQO3efDACfNOpKxcWLJufiwidpb48UegzLKPFefeN8sFrKEuiSgx5p wySa7+L9zPTm1DfUNEm1lrZOfhUoFTGXoHINMMT2mv4Jaf8leR0L3yI7eImRvCfEpz55 gpx3XCKJmqOlfgk/a/ojzibS7O3NNb3sqBbDovpRVbjhTAhtlyoSbCR17Cb9QZvefICd oRuAtm9NQh2zYjVaFYig40DsBOxgtCc70XSzAT56XdnC0mbVyNC/Nhco6aU3OTnBp8k/ 36KYvk9q9TvWjx/jnWm48z7kqbtTAi7vlVrBb0RXVDmKD86rgKEG3hXwFA1REnOIF83H EXSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (bad version) header.i=@208.org header.s=dkim header.b=xlC1stAS; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m6-20020a17090b068600b002590bf12fedsi11562991pjz.181.2023.06.13.20.25.46; Tue, 13 Jun 2023 20:26:00 -0700 (PDT) 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; dkim=neutral (bad version) header.i=@208.org header.s=dkim header.b=xlC1stAS; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232453AbjFNCk5 (ORCPT + 99 others); Tue, 13 Jun 2023 22:40:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232258AbjFNCkz (ORCPT ); Tue, 13 Jun 2023 22:40:55 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88C52C2 for ; Tue, 13 Jun 2023 19:40:47 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4QgqRJ3zXCzBJLB4 for ; Wed, 14 Jun 2023 10:40:44 +0800 (CST) Authentication-Results: mail.208.org (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=208.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=208.org; h= content-transfer-encoding:content-type:message-id:user-agent :references:in-reply-to:subject:to:from:date:mime-version; s= dkim; t=1686710444; x=1689302445; bh=wJPntn2KP3vFpRxmuRRSKniFJHD mT3nZqjhQqa1OpW4=; b=xlC1stASRlstXWrv9+GzfFIjOi/mLND7OGEpPvS6/gS SOqpE1tHtHG9wa4Hqpz8qnMwuqSjQnsRF5SBMqQwEifFLXvi0o7Rs7M+3Y3869wx zFEVSyvSkAy6Muv+prAeMq5W0OZ0xPt7bFvdfK/27WMCr4MNKJDj6cCD187KjttO NzRyaQlRGHaYMfRu6RcnH8leqnIJg2ceAlYrYZp38a/1Odv+/RUaZqIbiKaZ+ehh m2Rk9wKlIV+/5dSSDWUur05zkUT4SYwSm1v4soMtazZEtMVBdk2vMCllTYFPKpyz usBORqYi+fyT/L2x9D9OKdZZzkozsfw9srZRd9Oe2Ag== X-Virus-Scanned: amavisd-new at mail.208.org Received: from mail.208.org ([127.0.0.1]) by mail.208.org (mail.208.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id JGEUPoyyJ8rZ for ; Wed, 14 Jun 2023 10:40:44 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4QgqRJ23WJzBJL98; Wed, 14 Jun 2023 10:40:44 +0800 (CST) MIME-Version: 1.0 Date: Wed, 14 Jun 2023 10:40:44 +0800 From: baomingtong001@208suo.com To: tsbogend@alpha.franken.de Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] MIPS: Octeon: remove unneeded variable In-Reply-To: <20230614023829.23752-1-luojianhong@cdjrlc.com> References: <20230614023829.23752-1-luojianhong@cdjrlc.com> User-Agent: Roundcube Webmail Message-ID: X-Sender: baomingtong001@208suo.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RDNS_NONE,SPF_HELO_FAIL,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 fix the following coccicheck warning: arch/mips/cavium-octeon/executive/cvmx-spi.c:152:5-8: Unneeded variable: "res". Signed-off-by: Mingtong Bao --- arch/mips/cavium-octeon/executive/cvmx-spi.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/mips/cavium-octeon/executive/cvmx-spi.c b/arch/mips/cavium-octeon/executive/cvmx-spi.c index eb9333e84a6b..1f8b85473677 100644 --- a/arch/mips/cavium-octeon/executive/cvmx-spi.c +++ b/arch/mips/cavium-octeon/executive/cvmx-spi.c @@ -149,10 +149,9 @@ int cvmx_spi_start_interface(int interface, cvmx_spi_mode_t mode, int timeout, */ int cvmx_spi_restart_interface(int interface, cvmx_spi_mode_t mode, int timeout) { - int res = -1; if (!(OCTEON_IS_MODEL(OCTEON_CN38XX) || OCTEON_IS_MODEL(OCTEON_CN58XX))) - return res; + return -1; cvmx_dprintf("SPI%d: Restart %s\n", interface, modes[mode]); @@ -175,7 +174,7 @@ int cvmx_spi_restart_interface(int interface, cvmx_spi_mode_t mode, int timeout) /* Callback to handle interface coming up */ INVOKE_CB(cvmx_spi_callbacks.interface_up_cb, interface, mode); - return res; + return -1; } EXPORT_SYMBOL_GPL(cvmx_spi_restart_interface);