Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1657753lqp; Mon, 15 Apr 2024 12:54:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVenItJ1e60OakAPATyRmktTiozvsYEwN4BbFTH5oBDYrxOHszGDxubdvFvzdPEv/AiE7oQpodn0szu8dJQjpISdGPZo1tZMP3W/kAuEg== X-Google-Smtp-Source: AGHT+IGbUDQ96o++sIqKlge/upbpgLwcyoN10dvmGZ7juH1m9+QSDLKjK3SoXZ/HEQmpBzOyCcjl X-Received: by 2002:a05:6a00:391c:b0:6ec:eacb:ecd2 with SMTP id fh28-20020a056a00391c00b006eceacbecd2mr14528605pfb.33.1713210871548; Mon, 15 Apr 2024 12:54:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713210871; cv=pass; d=google.com; s=arc-20160816; b=EVnCV0MqgNtFJViivzOkZaFeHlj3Q7wyQpumaMfsYKg662vULGxMeH1bzpVwB6MsRe y0xljBL4uOaM1QlGPM9rrHycN36welAlcwy0Rn3mmy65o2yvjODMK+hkKNnerSbp75mx ezyt63/EnW8ZJonxlRPZK9DfoTJI0V4zTUTu3WY6qnD+MrlxFjBWtWpPqUu7ODT6Mqta HNM0kZVQqAnZ61seC0Wkg7WfI5qu29sOKI5ut2af3IUChpgvO2b14iS5rm3CzEB2L329 rO3R97eHyrfg9CkgnBv9EBLnm1AescrwWB5JaG2myF9pHCeFjiB9yq5zumabIrc71+cn JKsA== 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=6KP0c5kcroy4r+J8V6+b8GPdTtYSSQc0uibLBJF+m54=; fh=CuhriS0LMOT3ioMGTXDKTxs6CNHfqY8h63rwTvC7olw=; b=A+pHbb7gTO0THsJ/2LZupqS+5ciYsttZIZty8oI1/hlwQa++AjKx6U4Y3PHhwjyWTS cz3z8+ZnKixc+rCAlo0Rk0LhyFpije3eZbLD2D4pbb1QgiqK8ZUOxGQdNvr0E4hsypG4 5f/zC8Bx/nbM4dCiF9TF6s49iWhxkJmxdZEXTIHEBfBoR8yVblznafJF2BP9ZYLeJhrN aP7W32bA1wofslzh+x9SRxrf20CpUVoVp1xFOhRjJz295VmQ0bRWelo+Bw3FzyNsTnJX MjJ3muMJGlLjSzzgi9sw8dDOu6gCee3lcA4ookbBvJ24/N4fMvflZR0SW5c5k43vZPly t2ng==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=AJo8qQjj; 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-145815-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145815-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id f8-20020a056a00228800b006ecf1da539esi8891887pfe.337.2024.04.15.12.54.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 12:54:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145815-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=AJo8qQjj; 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-145815-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145815-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 151A72867D0 for ; Mon, 15 Apr 2024 19:46:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E9E8416C848; Mon, 15 Apr 2024 19:35:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="AJo8qQjj" Received: from mail-yw1-f178.google.com (mail-yw1-f178.google.com [209.85.128.178]) (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 26459168AE3 for ; Mon, 15 Apr 2024 19:35:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713209709; cv=none; b=Csw984TWRTcIViEjRLlOw05RV3OoYbfJUJKNT5kS7JiBM5wjk59SKG8//clTJmBQuPuF0NrAreY6jp8AfsfA9pEcGSy9BFaAtBXSaXal9P3flH0r9os/QFtUKJ1oAn4TlEITZbwt3BiKtntKmBF881qCaZjf9I9rYIRmT3Gap8M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713209709; c=relaxed/simple; bh=lxhOF+1XoX0GvbMqRieQPI9daN592yHX/FeyNVCIGVo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=txI3kbI1x7Cstl3PJRwRJp5ALLxJr0DLJTJcHNrfTXEabNCXsUyftcGmT+HSN1LEvORZjwWiiSS8zXBdY/CpCeLhtaYY4MMjokRdWdXVZkz8GaJWTAwBx0ppbXi3ShJu+EdnMBXyXdvR/ge4lYbXiHyJZEwrvmUpB8+kp8QfwMI= 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=AJo8qQjj; arc=none smtp.client-ip=209.85.128.178 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-f178.google.com with SMTP id 00721157ae682-61816fc256dso31279377b3.0 for ; Mon, 15 Apr 2024 12:35:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1713209705; x=1713814505; 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=6KP0c5kcroy4r+J8V6+b8GPdTtYSSQc0uibLBJF+m54=; b=AJo8qQjjfguUFvvacjBw5Si3hpvd/MAJ0Ykksf4vUYBVCYtWLgTD1xHtE3EQQUxsBi v4N6WkBGrjQaKZ+I/ZWCeBdflJGsxgC5ahcTZCrJdcmKPhTSmlaps+elHMTrZgd5Wvyl zsReaSaLxvkBuG/AxU3fQ2pG9w6FJZ2C0C7rk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713209705; x=1713814505; 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=6KP0c5kcroy4r+J8V6+b8GPdTtYSSQc0uibLBJF+m54=; b=cisXiYnLTsk/yJg4J0HnL+ENAgYFsYfIXrKS6GOwXY0OJkaTanbjgS9iDhyqGxqABD t+b/f6jlNiHM5GENbc4kUp4/UKNAJSYIiz522icIgKzRaKOGgaFFeuGASVuMwo3DQprt yOnvGPDIO3IcRdwVWKM1moA8+JArC0ncVIoAIMWRsmJZbmk33Yg+w32/dYyoXAAMZfgP ZXXnsUlV/sPd6OPOoGXwGzTC/p3znO4tlg7jQQ35EF9OfmLerlciXW8J+dmJOiq90Yam 6uj9/TBKjS7P1/ph/k9rVxd4aRyoPUmituKgzEL7blLcU56i0YfUI4HxgRYt1cAb6esC dz6A== X-Forwarded-Encrypted: i=1; AJvYcCWNKyJ9VGrcIuiye+ZI2ecojB40zLJ79i9sCYvenofjtsaV03s3qbnOw09CinttocO8ZPKAR79DBQwNGPWuVN6l08OkorzosHezbcp1 X-Gm-Message-State: AOJu0YzQfGXQl1U9ht/MlFvNmAZwT4oM71bi/NLjsQH/MsM35bPsBcwF /OU22UQUa7C8VTesYHnBOSp8qmTxQ6Mpx2m95sFIynVk1EUmrCCAgKttKsUH/A== X-Received: by 2002:a0d:cd01:0:b0:618:875e:2bc1 with SMTP id p1-20020a0dcd01000000b00618875e2bc1mr8807707ywd.21.1713209704967; Mon, 15 Apr 2024 12:35:04 -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.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 12:35:04 -0700 (PDT) From: Ricardo Ribalda Date: Mon, 15 Apr 2024 19:34:50 +0000 Subject: [PATCH 33/35] media: ttpci: 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-33-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/pci/ttpci/budget-core.c:280:15-16: WARNING opportunity for min() Signed-off-by: Ricardo Ribalda --- drivers/media/pci/ttpci/budget-core.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/media/pci/ttpci/budget-core.c b/drivers/media/pci/ttpci/budget-core.c index 25f44c3eebf3..2d85ae1ef50b 100644 --- a/drivers/media/pci/ttpci/budget-core.c +++ b/drivers/media/pci/ttpci/budget-core.c @@ -277,7 +277,10 @@ static int ttpci_budget_debiwrite_nolock(struct budget *budget, u32 config, saa7146_write(saa, MC2, (2 << 16) | 2); result = saa7146_wait_for_debi_done(saa, nobusyloop); - return result < 0 ? result : 0; + + if (result < 0) + return result; + return 0; } int ttpci_budget_debiwrite(struct budget *budget, u32 config, int addr, -- 2.44.0.683.g7961c838ac-goog