From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1AF4D4734C2 for ; Tue, 28 Jul 2026 19:59:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785268756; cv=none; b=MPAEtB98BuB7vna3Si1vj/FB5Slrw0amwZPCcgBOUEi1J6L60mACr1T/9HZ3MeaKc0ucQrqOlQXzLS1T+5pFd+Gma+/VWj0ayPPqM/U5StvxKlhElZsAygk5T41COk2Qi8ytxeJIZitpmze3AwtkBpxT/uBgezvloH1+Exr0nTk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785268756; c=relaxed/simple; bh=fSsnBBDVenBdoikZNgpHLslXDJ/55s6kInlpuDTVN0w=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=e1QnSpDQ5/u00BKlkJRv+lKN1d+nMx9YfOtpLj6eRobPLsNagS0xTmreM3hJqb860FHVceB/vw/KW5GR+52jPb+iEdGF1itA7aW0DsvONRl+coujDbdqgmeKK1N1X4C3v2CIvdDeO2eIra36FxGPVdihZmFBd/wkuakvBHjdRgc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=OZs9OW1g; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=aGJScJDe; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="OZs9OW1g"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="aGJScJDe" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1785268753; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Yfb/2XjvcxGKzTmsfsDxm8YHs5zyBujhHHkRZzbLBIU=; b=OZs9OW1gChGHHGdUQsxJHfw/3Uq4YplrVY2gL7FlJgT8OP5sypsNM0yDRxJvj0lO8eQR1a oMDTt9WKtGIPI7KpvBEdTqjLEqmhFjR5dBA1RtfNAsj1cXyR8zyuKVODFSDtq53Bt9xfQ9 lsC3IgVjb9Z8RMIIE2M7lFtFwxfhwxY= Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-561-yHMZpcGtNNSSpRm5F33Hlg-1; Tue, 28 Jul 2026 15:59:09 -0400 X-MC-Unique: yHMZpcGtNNSSpRm5F33Hlg-1 X-Mimecast-MFC-AGG-ID: yHMZpcGtNNSSpRm5F33Hlg_1785268749 Received: by mail-qv1-f70.google.com with SMTP id 6a1803df08f44-8e934385db1so2727156d6.0 for ; Tue, 28 Jul 2026 12:59:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1785268749; x=1785873549; darn=vger.kernel.org; h=user-agent:in-reply-to:content-disposition:content-type :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to:content-type; bh=Yfb/2XjvcxGKzTmsfsDxm8YHs5zyBujhHHkRZzbLBIU=; b=aGJScJDe/8S3JUoGL/V233CyTQJjPdkgz0feAWYSSOAQSEfYUbKd4I5/qZkIzYe25R 5TSYiBqLb72x0NTjzcwNLqaIsjfFMttfpwa2aHi4gELEyLGxD3s5gPHv7lSAvlBIceKF aIZWBjHD53SbrZVDsGjS0tHEhqNdYtOWuJLSoKeodr+l/L2DRnbv+Mn2QqCqxofkQXEB yMHWg2nGuNoArjsBC14FYv0+u67U8dZv/WJaPMneSMWM9X4DF/Bj0s1Kz72MXcze3OAv VQc23SIo0NAfvXC/4SVTneTLG5kbNdsI7OfgcNUY8+DlFDhF1X4vNkAaUaoEOmOsHRgN t5Ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785268749; x=1785873549; h=user-agent:in-reply-to:content-disposition:content-type :mime-version:references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=Yfb/2XjvcxGKzTmsfsDxm8YHs5zyBujhHHkRZzbLBIU=; b=OKN16WCjDzmY53nceKCtnziD9eg4aUHkVRo1OnmQnVQ91EM2cwBihvH0bgIE6B9GVw ycJm/gjXIWzaYVGQsZiuVqcMRNCtWYwUH6/lN7sji5ekwUx+HS/bQeD5QPCSHP08ODuS Ftowtr/ZXXIRhuHOrQ9HENqZBvodvhlX3dd0nLHSvvWBltBvy5xQzXinrvZI47T/G/UW lPkUljSQ8hqDMs4RKRHuTSzxcxF1vamn0HmAThaw7kcst26lId3wt3t2NaPRudNE8ITP i+A1PblSI4ZTR2q5HCaaGlQPGxW5iapTpHBiJHf442B8+dNePPoAaHvZ6EoGT7JOuTkU dSUg== X-Forwarded-Encrypted: i=1; AHgh+RpmEViOyME9gcmhmA6WZ5W4uP1XIiCMy1vq5HXNqB39p2cERUXYnMxLlMifAZrPvgvE7IAyEriSYB6WrgU=@vger.kernel.org X-Gm-Message-State: AOJu0Yy3RpYa3l9+u31y7BRLV4/XiXmY9DfShWgIE9WPEN4taHVkqs/X VRZyJVCxNrJEuThdjvA6mlUIQByapFAA7L0TxGTk1Giq/n5DaKy+46CgQvHSNthcYCYU+eBrxF3 1oClaK6SGXslWz6e1ED032R0bsstv9hyiwe7m54vFgYdKXxHwKIx2CxVFAyepnNEv9g== X-Gm-Gg: AR+sD13LfHi35MeWgq1psIvLxNd1Ew0Z8kLRWmjfaDLNqec9zJ1Phaxw1FrMifSmt4/ pj1rpCPoZCDvyQgJTbPojsVvxIu4+ht422LhRMIenkB/Iw4i6mzJ3T6BEBy9+nsCGOMN1fOif9h jIQDpxh8E/0+xdt1Ye6AstPPZ8uco00LyGKqHve+PTAmRX01vxnHiWlt7ddOsPVOIGqWNJ/bZTR +5oDRPuDV8OPZfJ8ar9fjY5cEmvDBvo8etDv7ZNbU8RuCYrVgWJCbwswsAF/ksQREbG01wdFRmB inwmHpHwidD97h4bwkyXRWHDv//fa4MfqHPteEb/UAIC+KORh9EjKKNikP4ZhWtnnnYh5bcS6Yr mvR2yJ3dRWGwzruUWndgXiBHnp9nTr5pZCnM= X-Received: by 2002:ad4:5ce5:0:b0:8cc:f72d:6a5 with SMTP id 6a1803df08f44-908172c021dmr46355106d6.36.1785268748710; Tue, 28 Jul 2026 12:59:08 -0700 (PDT) X-Received: by 2002:ad4:5ce5:0:b0:8cc:f72d:6a5 with SMTP id 6a1803df08f44-908172c021dmr46354816d6.36.1785268748204; Tue, 28 Jul 2026 12:59:08 -0700 (PDT) Received: from redhat.com (c-73-183-53-213.hsd1.pa.comcast.net. [73.183.53.213]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-9081f69f65asm3076856d6.15.2026.07.28.12.59.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2026 12:59:07 -0700 (PDT) Date: Tue, 28 Jul 2026 15:59:05 -0400 From: Brian Masney To: Sang-Heon Jeon Cc: Jonathan Cameron , Andy Shevchenko , David Lechner , Geert Uytterhoeven , Linus Walleij , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Magnus Damm , Marek Vasut , Nuno =?iso-8859-1?Q?S=E1?= , Joshua Crofts Subject: Re: [PATCH 8/9] iio: light: tsl2583: remove conditional return with no effect Message-ID: References: <20260727184755.2055414-1-ekffu200098@gmail.com> <20260727184755.2055414-9-ekffu200098@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260727184755.2055414-9-ekffu200098@gmail.com> User-Agent: Mutt/2.4.0 (2026-06-19) On Tue, Jul 28, 2026 at 03:47:45AM +0900, Sang-Heon Jeon wrote: > Both branches of the check return the same value, so the check has no > effect. Remove it and return the value directly. > > This is the result of running the Coccinelle script from > scripts/coccinelle/misc/cond_return_no_effect.cocci. > > Signed-off-by: Sang-Heon Jeon > Reviewed-by: Joshua Crofts Reviewed-by: Brian Masney