Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1653948lqp; Mon, 15 Apr 2024 12:45:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU0MSCBlrk3rvAyvuiWzhSU0XdzQgEQH5j8NxSDtpITKXd1APR3oaw3ReyiR8YeQZw5lrjV/Jquzzj4dvk74bCgzuUnIQcf8XsPe2GbxQ== X-Google-Smtp-Source: AGHT+IHBLwFDAA+xlUfKkz4T6z0+Vsa/Oi2Z5xpQFmrLDL64eB7Qp8eywcran73nciP/cTxGxCOy X-Received: by 2002:a2e:300b:0:b0:2d7:7c0:b077 with SMTP id w11-20020a2e300b000000b002d707c0b077mr6672157ljw.43.1713210334473; Mon, 15 Apr 2024 12:45:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713210334; cv=pass; d=google.com; s=arc-20160816; b=Ve0XMfjK3oaJyLzzqCpD0NrHkjsDN40S/jNlnPfFlWBafWRRXrhs8AcpPhED5VPbZQ 75Rvy/EnXma6C5YetyAg+TZK5m3yrejEG53x9YKPeehaVmFGwTRe3sJYNGFnJy4wQQz6 cMud3p6djIdBvZtPnX2BKeyUm/YyHB13nLrCto82m6VN1xxalR+keDpyH+ELE0CLSeQ1 wKACD1kKavBcKlBoJoAfCsK87q7+eQA7t83DqmhmKrAo6CxBWtMkVHdH2fC5JqVXdubs AEIE1yV81pkQa3soFmOwJv1tjrqCmmLKziRRGZXDcreIK88gZ6fDhJI+W/P2L2ZjQJV8 mgOw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=jt2XKVmYwRsbqiFBuUwX1RfD+QA2xOHKpcd2HjFMj/E=; fh=SziCPxAvy3r9cLjuf6pBJXA5Sb6ajqHjQq1Qz0O9WQ4=; b=qodxKwWTnzADqyhOtf/AV2XsMBEkMVphD5vaIKgQFwwETA6vEcYMR2Ng8Q8s0JQJEe T37uGnnOXUhio91taT7M3YWkGsmijErM+tfCeqUifBmlKTAQVq1E8Jf6LNplWA2T1/Vp pr3alZB0EmCNG64D+eq6WNrWalwLwFYWNC7MMcfBkuZE9O6weJ6y6CrAIUCs9HgSnojH +OjB7ETDR3jaBVl9b9OYFlUqduk9PZ6d+26hUE8YnyO/Ph9Xq4J7+VNGH0Vfd7viZb2Z ytfzbwUOEG9vNw/tmqNF6Mm8MhnruQnH7EG0AXZX/wWu7aYzj0jx81nRO29o/8DFR1d1 GtlA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=RKkbhxx8; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-145813-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145813-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id y17-20020a056402359100b0056e328bf43dsi4857368edc.382.2024.04.15.12.45.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 12:45:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145813-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=RKkbhxx8; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-145813-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145813-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 054A01F21CA0 for ; Mon, 15 Apr 2024 19:45:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6FA1B15667B; Mon, 15 Apr 2024 19:35:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="RKkbhxx8" Received: from mail-yw1-f182.google.com (mail-yw1-f182.google.com [209.85.128.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E7F031649CF for ; Mon, 15 Apr 2024 19:35:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713209706; cv=none; b=FxAe2boJYLssXiexOHDN5DsHQkxyM/2secwX1ZX0oBa0D7AeLo2wvNje0zgQ3ntEZbEHv64Zkmflr+CWavTC7Jd+qA8STQU2JM+J9p/L6y4Eg73JAd8AjHjvWn3JsDr2uLR9kuEYRs0mba32IGpRSSA315yuM0CVJqSVPpVtBSk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713209706; c=relaxed/simple; bh=XZhwvXRbcWKSHFSPcZ7MTtPfoRGwp5KRtZGpZNte2nU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=MI2LTLLZyUdoMK3EsmJeKvHg1addtw0dEuVwLT3cvFRBe707wx2Uy9UZjbBC3to261nJO/9N1eqCgmAD7i0iO49BtxA/oqZt79XrUYzMcoow26IrwHJgRVURgviCzDWaGpv1GrqAU95xv9d5kjD09s2cctlp6qWjWCJHXfzOlgA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=RKkbhxx8; arc=none smtp.client-ip=209.85.128.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-yw1-f182.google.com with SMTP id 00721157ae682-61587aa956eso34881667b3.1 for ; Mon, 15 Apr 2024 12:35:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1713209702; x=1713814502; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=jt2XKVmYwRsbqiFBuUwX1RfD+QA2xOHKpcd2HjFMj/E=; b=RKkbhxx8/nD2gu72sVDXiA2L3ZsemLRvHQAOhyZx0+oDckJDWUwJxo8Zilq/WRybIQ OfRIlhjMbNr60hcHzq863/1zI7lw1c+9hVTUql0GLfe19SiRssxXEQdOuRQ7SHDHYNoL h0vwG0aeenOjDdPp8U5FtKb2brE0UpAWQwPbY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713209702; x=1713814502; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jt2XKVmYwRsbqiFBuUwX1RfD+QA2xOHKpcd2HjFMj/E=; b=Rqq5V3ELaNopv45Dm0yAYLKMcAP7hzeyHk2EsiJ7iRfUJGMBqiguifqROZreyrGUup J+a/6EQAR4MgTxJT0OOS/s2wktujUEpbBbbcOL4aCBIozyXZ05bGzbDqS/1BhPkHuds0 9Swp4wjDXy+sHNnNMYMuj2WofkBBnYNgTLU+2rQ+r9hm7NrkojS1lS78rEv+7K+w6bOj 3S7fXjyEYwUMvQ5H9c43AGCNlts5XuJ9dzd70gEhnOBJsDpT9UGzqYbMRzXLR10qcwKm tn6aDst5NqWkjAtP/rwe7NQCpWHqj7KC+8opUkBTWYgQIaB1lfjtWq4L9pfs3nDdMqxu sLjA== X-Forwarded-Encrypted: i=1; AJvYcCVJ/3hShFWUaK+mOeDrgGNzFZ44Rm5YLBFU2St9y5dwm9Ao8Y2l8jGMUnZvgdZaJx9xcnqtDgCS8qAGNPv3FWmpnHyABRFt1uNbN54C X-Gm-Message-State: AOJu0YzKnsJdxaqU/RAzeqJpRclBQ8YnqI9BJ4BnneYMsgYbiNO6VAbV PpSMEcpx6BgMCrMnZkOc1nTBu8yue/rHokFoXt0gN+W2jcX78OoS8OzHLAxqUg== X-Received: by 2002:a0d:e292:0:b0:615:2078:9c0b with SMTP id l140-20020a0de292000000b0061520789c0bmr10298321ywe.40.1713209701695; Mon, 15 Apr 2024 12:35:01 -0700 (PDT) Received: from denia.c.googlers.com (114.152.245.35.bc.googleusercontent.com. [35.245.152.114]) by smtp.gmail.com with ESMTPSA id s26-20020ae9f71a000000b0078d3b54eb76sm6718055qkg.78.2024.04.15.12.35.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 12:35:01 -0700 (PDT) From: Ricardo Ribalda Date: Mon, 15 Apr 2024 19:34:47 +0000 Subject: [PATCH 30/35] media: i2c: et8ek8: Refator return path 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="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240415-fix-cocci-v1-30-477afb23728b@chromium.org> References: <20240415-fix-cocci-v1-0-477afb23728b@chromium.org> In-Reply-To: <20240415-fix-cocci-v1-0-477afb23728b@chromium.org> To: Martin Tuma , Mauro Carvalho Chehab , Laurent Pinchart , Hans Verkuil , Hugues Fruchet , Alain Volmat , Maxime Coquelin , Alexandre Torgue , Paul Kocialkowski , Greg Kroah-Hartman , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Sakari Ailus , Thierry Reding , Jonathan Hunter , Sowjanya Komatineni , Luca Ceresoli , Matthias Brugger , AngeloGioacchino Del Regno , Hans Verkuil , Sergey Kozlov , Abylay Ospan , Ezequiel Garcia , Dmitry Osipenko , Stanimir Varbanov , Vikash Garodia , Bryan O'Donoghue , Bjorn Andersson , Konrad Dybcio , Benjamin Mugnier , Sylvain Petinot , Jacopo Mondi , Kieran Bingham , Laurent Pinchart , =?utf-8?q?Niklas_S=C3=B6derlund?= , Pavel Machek Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-staging@lists.linux.dev, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org, Ricardo Ribalda X-Mailer: b4 0.12.4 This is a nop, but let cocci now that this is not a good candidate for min() drivers/media/i2c/et8ek8/et8ek8_driver.c:255:13-14: WARNING opportunity for min() Signed-off-by: Ricardo Ribalda --- drivers/media/i2c/et8ek8/et8ek8_driver.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/media/i2c/et8ek8/et8ek8_driver.c b/drivers/media/i2c/et8ek8/et8ek8_driver.c index e932d25ca7b3..c7984f90ae4d 100644 --- a/drivers/media/i2c/et8ek8/et8ek8_driver.c +++ b/drivers/media/i2c/et8ek8/et8ek8_driver.c @@ -252,7 +252,9 @@ static int et8ek8_i2c_buffered_write_regs(struct i2c_client *client, rval = i2c_transfer(client->adapter, msg, wcnt); - return rval < 0 ? rval : 0; + if (rval < 0) + return rval; + return 0; } /* -- 2.44.0.683.g7961c838ac-goog