Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4825851iob; Mon, 9 May 2022 02:31:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxitKPoWI3nHmDpnlbTgGmyIW9DuZX2v8ObcUF0i+xErl6vtG0YDoCVqVwllRy4AF23bmWD X-Received: by 2002:a17:90a:9b0d:b0:1dc:e81d:6c18 with SMTP id f13-20020a17090a9b0d00b001dce81d6c18mr13623638pjp.72.1652088690574; Mon, 09 May 2022 02:31:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652088690; cv=none; d=google.com; s=arc-20160816; b=hhUsdPipUm7P4JLNkPZfXV0U0H1H47K/gdXvRYZWBY8Hk3OWJcuPdVItJd60TsnU5l H7C89Y9hz/pie5lE7F2IWuC393EUfiLEbDPZubxrTMkeIP1yFkWPo4jxvZs/HnHQJU0F prNo45wni4z0lurVrdnxxMRCFtW4aciqU69nHHqG31yAXK43J8zxz39Oa5StjdTlA1v0 FFd3LrhqRx2onHb833UwbJ8k2gEZf/bslAgza22HoxdghiZ1yMjPXUBF3jqV+dODaoPy RBnrsgD6WVnTUsKnhW16bTv7VK3nVtRbhbTB69dYe7L+t/nqnT9UacestVK30BXSW3vC 7keA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=R4CyzEN8tLV5ATPkFyhAbooF+416jc4wAhU9LceDppk=; b=zK+0Q108Wqsmrgcs4/5ZGGCXSXNDdVmYbnL18PcH6vww07fzOi30r56DCbWgUKYd8I DvRJ4Qc6Ve2/luXJppv2RnHmOLOTONp/jyhcUoThlm4g5P49e+FiezSV/UXMPO0DQmv4 y8PbT1uuVSKpQN1TUqjv0tgiq/sn0Cr8X8xHEOReDHdgeqfNZ2sAXGMUNQl8wy7nG9xO aLStF8U9jda6f3Kf2hIaQIF5BPP0e+8LltDcyXoOQ1v3pd/rxVIY8mM8ZGshdlKwZLbt jiCyxukde9dq7puc11OW0XE8jKiE7VSfHjhyHdmMdeYskcmTKEIRgLCSf4AP/w3c5nTR hBgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RWpp4fSQ; 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 u190-20020a6385c7000000b003a0771d526esi11551481pgd.705.2022.05.09.02.31.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 02:31:30 -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=RWpp4fSQ; 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 DADD03585D; Mon, 9 May 2022 02:19:28 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1392579AbiEFNfs (ORCPT + 99 others); Fri, 6 May 2022 09:35:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1392576AbiEFNfp (ORCPT ); Fri, 6 May 2022 09:35:45 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D083A5C64C for ; Fri, 6 May 2022 06:32:02 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id g6so14518062ejw.1 for ; Fri, 06 May 2022 06:32:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=R4CyzEN8tLV5ATPkFyhAbooF+416jc4wAhU9LceDppk=; b=RWpp4fSQmVX9lauE5W+eJIrDkmzEAhlSAXFaR9lYNG5LRla9bgV7ttNm3SdujqSzJ0 wejeoWTstFYS6G2gd0dzzeIXl6gZXAKNbRshCorFXoA5JxwmrJKgrUGbukTtQhStsKVQ rlSojUx+iU2wAefEq2rgBJ8lZ4Us0Pju4OTLG6SoXwF4j2f5PX1F1Py/cdCyOJRYcpyM IOVh9z5PCaXGpqNd0B/0Ff3tuK0JyO5ZiLRlBtNAacsYkVuDu7dY0HGXS2VrNZSkk6DI ZcYflo+UPhciXMQX4BWbVdVx9vyKYEydu8LWrbEn6/alV20VOXu+b0gohq9nhYQWuZ6g Np4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=R4CyzEN8tLV5ATPkFyhAbooF+416jc4wAhU9LceDppk=; b=d45k1xsBu3qZfPDEqvC9avNGWG6rgTEldQ4zWvGxo44V3uuKcUgCsSr75qyM/Fy3zc o+mSuZYJuiPKxWsljZDFmT19SFPsdqJdiI5LRT+3++3OLPyKa97w0jpW29nktzaJM6kO 8yNqcWZcIzicIUKd0dqWwCCI6oVfwwm+W8+P/dVummPOlvl8r3wMy3tyjiCdj88RvCR9 Skck0uTgTFo1MLzU7l4tWNIZShSFopGX/K7/qRbrnS8ntPaWSOU/sTxoRS1BgEkR2efP 6F9XDFsKigInvliNwn/DybJmY3v+k81RzKncjSdwmlLOBwfTlAxN+p9rhQclu8bpozF1 M4+Q== X-Gm-Message-State: AOAM531SjOteb6yfsHl+TZH28R42eVVEmuU+JoGxFBFOlU4HIjBioTX5 vsXp5hWOuS12JOyKdGrgGPk5aQ== X-Received: by 2002:a17:906:29c2:b0:6f3:da29:8304 with SMTP id y2-20020a17090629c200b006f3da298304mr3062189eje.569.1651843921399; Fri, 06 May 2022 06:32:01 -0700 (PDT) Received: from [192.168.0.227] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id lr9-20020a170906fb8900b006f3ef214dd9sm1926617ejb.63.2022.05.06.06.32.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 06 May 2022 06:32:01 -0700 (PDT) Message-ID: <4cfe150a-e5c0-8864-552e-afa454bfff43@linaro.org> Date: Fri, 6 May 2022 15:31:59 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH v2] i2c: s3c2410: change return type of 'i2c_s3c_irq_nextbyte' from 'int' to 'void' Content-Language: en-US To: Yihao Han , Alim Akhtar , linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220506122639.2544-1-hanyihao@vivo.com> From: Krzysztof Kozlowski In-Reply-To: <20220506122639.2544-1-hanyihao@vivo.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On 06/05/2022 14:26, Yihao Han wrote: > Since ret is a redundant variable, and none of the callers check > for return, so remove ret variable and change return type of > 'i2c_s3c_irq_nextbyte' from 'int' to 'void' > > Suggested-by: Krzysztof Kozlowski > Signed-off-by: Yihao Han > --- > v2: add return in STATE_IDLE case > --- > drivers/i2c/busses/i2c-s3c2410.c | 7 ++----- > 1 file changed, 2 insertions(+), 5 deletions(-) > > diff --git a/drivers/i2c/busses/i2c-s3c2410.c b/drivers/i2c/busses/i2c-s3c2410.c > index b49a1b170bb2..d2a1fd2aa7a0 100644 > --- a/drivers/i2c/busses/i2c-s3c2410.c > +++ b/drivers/i2c/busses/i2c-s3c2410.c > @@ -381,17 +381,16 @@ static inline int is_msgend(struct s3c24xx_i2c *i2c) > /* > * process an interrupt and work out what to do > */ > -static int i2c_s3c_irq_nextbyte(struct s3c24xx_i2c *i2c, unsigned long iicstat) > +static void i2c_s3c_irq_nextbyte(struct s3c24xx_i2c *i2c, unsigned long iicstat) This still should not compile... are you sure you run all the checks on it? Please do not cc non-working addresses (kernel@vivo). Best regards, Krzysztof