Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1653622lqp; Mon, 15 Apr 2024 12:44:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV5q68fZrXOu6+C5B6kRG6k2SZoqDiGfLpJvr//99xd05IecTpGtonlfIcYcsVniYgRNAc65G/tG8JH6bIyqJMV1OJ8WF1aOmF6HBxUpw== X-Google-Smtp-Source: AGHT+IHDTwgUfRQPItPBcsbiPvcYntkTmwV3Qu4PI2oO6s3M7H5IW+svyR4fGi/f9zAGEpQeprwm X-Received: by 2002:a50:c303:0:b0:570:d85:f29c with SMTP id a3-20020a50c303000000b005700d85f29cmr4777479edb.1.1713210287988; Mon, 15 Apr 2024 12:44:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713210287; cv=pass; d=google.com; s=arc-20160816; b=lmZE52ku4obIwL+nIo3tGePglqYNgFIlh2bvRl65YwpVQsYl4adsrbpI73+7GHhKjL d6lL0+PlESxCvj3VaQU3uxnCh035l2bBkGd48hsSqObNGKWiW/FF2JlMu/e5AP6QyKNA SUy1x0H9fhqadk8q8GkkOBXfftKJsiX6VMdVirmo7dYaMTbliNXiNTOuSwLjtZ7FM61w EnO0IEX4/S7n0kntNIGJYj41oG28qyQlTmvMqmZuKfSGjRvIA4SNItryCTDoIpoSEbGF JtmMHJaX5MoIRUG745binI127czv+aTX7+R3cpV6D5rDFoARX1j8iAgXV1qs5db0Lzbv oeWg== 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=iMZCcGT0at/n2sdsTlaxf6HXRDJtJnjvmf8GQe8Iq6Q=; fh=2wtT41a1A5Hjw5Qv90YQZrNynZBSm0HT4OjhPspHfqY=; b=p090mmRtyrRk+oqT9lQkyrkQ7i9ZvKM8B07smLPiLwhOFmVpmDpSOuvVWl18UIBZUy EAiqHbA0EhWNC75CQgKi+A6wgPBzcXwq0+NaLhhTnqzRfEfxmltRlOCzGKV+cTcGkMa9 TI7/6FelJUvV4RqliEHodsNd3v7E2xnkxOU3q2ip0vW227335YGtnpDb5OlAGnU/d0tM rByppltv1YJMi/PpXTPJLxh0LFO6gCDosE6hIiqjXQJG2kIwkMlj0zsFboh9wzd3Lfr9 beM+NrXbB2ITNDoCGtvYiZwIYHBhJ4vWAc+5CEiCrQByxNq2T+9ArjnjoAJAXTlg57gl rVxA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=MgEpJ8pH; 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-145810-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145810-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 h6-20020a05640250c600b0056fd7e5610csi5096477edb.393.2024.04.15.12.44.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 12:44:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145810-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=MgEpJ8pH; 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-145810-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145810-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 B48231F22743 for ; Mon, 15 Apr 2024 19:44:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BB478168AEF; Mon, 15 Apr 2024 19:35:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="MgEpJ8pH" Received: from mail-qk1-f177.google.com (mail-qk1-f177.google.com [209.85.222.177]) (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 7142916086C for ; Mon, 15 Apr 2024 19:34:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713209702; cv=none; b=RSe1fsSrhagAU/MTv7mbfRjbZ7wD1Iuir1F6X97Dag2nzKPD1Wid7z09j4pZGswf13a0gk/2qg+lcRjbR+jn8UzWbNLPyQeUBwk7UFSZdrT6rdjDjF2n3ai9dSKhLOPZnVMBcvu+9HJwr44pZ0FqXGDoxG1M2R4gUUL2qo5xPic= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713209702; c=relaxed/simple; bh=FLhv08563J1Psy0r1V7CQ6B2BdCZZA68wZr/ZwGdZu4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lb8lDsIrQDiGW8hMgqdU2EvV3D0dnHg9ggL7YNg+7lO5j+Cz1AjC234+Cux5ibzqAfRNhKxp93J5Gm8yQ1BUAgb43+P1eUckcoKY0Mo/NEFT8w/a5vOKzr9ze+WZzfFy7iDhicgTRTJsjDL8M/HjEKNE9pbkWQW6u7AZ5ftUyn4= 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=MgEpJ8pH; arc=none smtp.client-ip=209.85.222.177 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-qk1-f177.google.com with SMTP id af79cd13be357-78ecacab93bso327499285a.3 for ; Mon, 15 Apr 2024 12:34:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1713209698; x=1713814498; 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=iMZCcGT0at/n2sdsTlaxf6HXRDJtJnjvmf8GQe8Iq6Q=; b=MgEpJ8pHtoPzVNLAY/UpTrJX/2FOdupqVC3XM0N1D0PtgvVeKiuxjJLd1TI5hM0hhn P1Cw3tz2acnbSCUCRk3HzFSMAylnEOCzWVVNMdpakg76Vwmd9DgKsLTumYlnvhKL+4F2 TirA/Omfl42z0YiJWuaThzhXhxezqC5Eau3jE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713209698; x=1713814498; 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=iMZCcGT0at/n2sdsTlaxf6HXRDJtJnjvmf8GQe8Iq6Q=; b=rZwALDA30vfJDaXsQF6/OxxSru5sNyedFKYbHKPUZJlPqEay4WP5dLfPTS/jJ6bC46 nSdBNpe07rFWbHSXT89Lx3PhBeYUUxIeilF9omxeMYRbKnotXzDLVLDNwPds9Et+qAmt AFQtVQDkY8hOMZEGAFDQEEkexBCJnTI46tU47ObdhVuwKQjR4Cb5AxmwoN/wlrxsn7/L Vh1dgQIDBvjh5AFEfwEjlxexPn3l5bReAZdyVpmDrTW2GwGdAex037WLuUUGYGJM9mrI /+vpMk87VxowNk7MDlpxNCfIE3xvDXRQYWHgjUotwEMcSfXBtoyarVptlXxyrDhoIq7B vGLg== X-Forwarded-Encrypted: i=1; AJvYcCVWO/kUft9AOx0nTVE7plXAxmMydBViug/WTkcWwhr2wV+Oz4BTPiGqEjYnyeIwyAfDRitEQiZ8w+mjkphmRGTG3WebvPU0gT123j+o X-Gm-Message-State: AOJu0YxTTvQRolJ13Z9B7mykyYXyOJPmDjPj5W+DQgYZI13eKGDAgK6H yRTSBm4EofOayzRs5CcIGbq4RmZNl7pvF61yWvf+je83TaWAU32ogmnXxjkDsA== X-Received: by 2002:a05:620a:469f:b0:78d:66b6:a786 with SMTP id bq31-20020a05620a469f00b0078d66b6a786mr14598431qkb.35.1713209698470; Mon, 15 Apr 2024 12:34:58 -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.34.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 12:34:58 -0700 (PDT) From: Ricardo Ribalda Date: Mon, 15 Apr 2024 19:34:44 +0000 Subject: [PATCH 27/35] media: dib0700: 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-27-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/usb/dvb-usb/dib0700_core.c:67:15-16: WARNING opportunity for min() Signed-off-by: Ricardo Ribalda --- drivers/media/usb/dvb-usb/dib0700_core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/media/usb/dvb-usb/dib0700_core.c b/drivers/media/usb/dvb-usb/dib0700_core.c index 1caabb51ea47..b2ad2d0f76f8 100644 --- a/drivers/media/usb/dvb-usb/dib0700_core.c +++ b/drivers/media/usb/dvb-usb/dib0700_core.c @@ -64,7 +64,9 @@ static int dib0700_ctrl_wr(struct dvb_usb_device *d, u8 *tx, u8 txlen) if (status != txlen) deb_data("ep 0 write error (status = %d, len: %d)\n",status,txlen); - return status < 0 ? status : 0; + if (status < 0) + return status; + return 0; } /* expecting tx buffer: request data[0] ... data[n] (n <= 4) */ -- 2.44.0.683.g7961c838ac-goog