Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1654521lqp; Mon, 15 Apr 2024 12:46:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVaBGbTjesKeEf+A9NOKdKVJFMfkwT1x+nWG94+mRZsWzw3H17wtBiy5JY0OkpUamBRevb8M2IxaByIGg9FsUEV0dEO4es+xP22WtRYcg== X-Google-Smtp-Source: AGHT+IH6spIEBQj8ndtfo2X9CyaVkTbsIhQZZIS6WXFYE5xtx0Z8gmqrbIggPd+2sp493IcXGUZx X-Received: by 2002:a50:8e52:0:b0:56d:b6dc:c8fe with SMTP id 18-20020a508e52000000b0056db6dcc8femr7663758edx.0.1713210406993; Mon, 15 Apr 2024 12:46:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713210406; cv=pass; d=google.com; s=arc-20160816; b=KumPp734yubx65kfnAZDmtQltDpAXPxV1RdWCkmfAVEJOsBpcezs0GlKrZJZHEv77V enAGqj7PR2sb2H0YVDlAnKyF0xoMIIXGqg8Iu8xEIQv8jb3ZZykaD2ArEozWuxmuyFoZ Ybpa5yO9XV8PCjsBdKySK3gJb+psgiYJ0XKdmAziyW4wP6VcYfklPlLIROsJUznYBeOZ jOshITkrxXScNd9Q9lGTWLiy3q9XozB8grDygjaQcpcWQiS4yiFyuNzvJ2FPEumDoq4h IaJDu1hZUoieKrpaeEFwK6uarHjUSa0+wm2kcMxLSeGVQvvXKVxXJXQMbZVCwOmkmAHr Vuuw== 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=deJ10dD0+0Xsb8NjdDYAyKNbuwQhOs8Vh4XFupDcv7A=; fh=r18mJCFtozovz3wRY2gMXACmg25vsZlzgC1YayaQqF4=; b=YTW+4c0UTcoDBjNKExzgjvWuCFT3Ww2XKQoM2HdQ2SW1tZbxj1z/qDWtP1S1u9d+mB aiMSY4dnuqKf/SKPGrYgxfsHQomOSmylFmYY5do9/bVT4xA/VXWsOTgnkwccOmXGNAyd F4Acl+x0TbJKD3jGNp8Mpc91YPb5pRk+997qcKLo1T0cRuvjkSyaQS9XM/GftYerjCXG 9NkWVqrInmT8lh6WKG8N4dZoegAkRglA3jT/Gh5mHQg5Dr2rDglJLmbWFFQoyO32CI6p eVgOjAKIs+PypwSYoDPU/kZng5OySo3Wm58//ZXYBxVTe6qRCWOMwWxaW9xaM3mD2kw4 gKsQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=b61fb1rR; 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-145817-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145817-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 j13-20020a05640211cd00b0056fe3f28babsi4947612edw.160.2024.04.15.12.46.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 12:46:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145817-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=b61fb1rR; 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-145817-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145817-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 A1DCF1F238B4 for ; Mon, 15 Apr 2024 19:46:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8BB2B16C86D; Mon, 15 Apr 2024 19:35:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="b61fb1rR" Received: from mail-qk1-f173.google.com (mail-qk1-f173.google.com [209.85.222.173]) (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 2A4EC168AFA for ; Mon, 15 Apr 2024 19:35:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713209711; cv=none; b=tRv8YCtkrKIeT/KNiBLCqzZMVH8lRSas8lNqx44estUwXNjKqu4DjkOhidlIF8sAV9M0COAdQgWpWZhDpLa86AE/Am/U9TqVyvBuF5voouZvc/dwqRMwWMYpUkPacOHy4wKAQ1niYq384oMker3fsf4Wk+G6ISJIUtNrqc3KDk0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713209711; c=relaxed/simple; bh=h0c4cQBYAKG+eCRXK2bSjQ0k2ogfrTqHDn/vqghdbGk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=WJNd1zKH5TWFzw9lq2/iBCTFQxU9GHWxx2jeI9mIZBwcj4MJTQznjGBZleOH4VDTM5ZvhO6gP7OXp3Nz/z4EHImUmazI47zTKJRYkL7bID4SaCMA4JrwgfCB/SfQrl5xKcjsQpu5twqRLQDtijuUZdoI8Gh0dULLgzqONlglAOE= 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=b61fb1rR; arc=none smtp.client-ip=209.85.222.173 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-f173.google.com with SMTP id af79cd13be357-78edc49861aso135693385a.3 for ; Mon, 15 Apr 2024 12:35:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1713209706; x=1713814506; 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=deJ10dD0+0Xsb8NjdDYAyKNbuwQhOs8Vh4XFupDcv7A=; b=b61fb1rROkeF5g8O+2SlUmn4oUiTiBLP5ttokJo4a1dGChp4k4d3tmhkZxYPeyt9V6 jzM2EgnhCqsmhWTeb8HFfibflxQeG832NwKH4tX6vBY71u0GNNov1kkG4UGgioqWavzE aonfPldFUzq4+hJu53tjeT1RwuEeWYs77yjXo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713209706; x=1713814506; 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=deJ10dD0+0Xsb8NjdDYAyKNbuwQhOs8Vh4XFupDcv7A=; b=WIVxaEvHB2OzSFtFR9iLlnxV4TOy3GHetAVw711PYkekROhizbeu7DPb8wqcXm9yn8 1k2itWJsMgiEKR3aUmnClWR81m5NL+aq0LlpIZOFbFrpYZlGzLWQvDlVQjPLf+AeK4oe aPF8cd6dbXNm35tEpNZPBvcrF6fheItrjGjj9ZuP+RkSOiIN3ycT2BiSYSgIsqK5JuH8 vDGej4ETFd7ZrUz2MwVLguyUwHcW5wJR3YS+n2P1GqsF5JNp9CV5GrRYv7hrVwPBsUcH cESxyuibyz1ehFqg4vz0Vm8vLSW+PUr8rO2IEw+QTgSRw1Bmnd2tywjHlW3Gv/IQ9SjV +xBA== X-Forwarded-Encrypted: i=1; AJvYcCUekWj/SagRcY0RgECvpFzNL/nBM722fgpW6S95g4nQR0LoG+8CmYl0e7d9s62Z/erQQFVV034N4ecLXf0jGspzJKCDkPEGlCi+vlQt X-Gm-Message-State: AOJu0YyxfpKulpW/z0o/z9GrBGj7qBy62/1q2WDh8J0PFlsSYtNpEDV+ 6onYxT+lr+kuM1OpZeujvtkklQat0HRyAJYt+9VJisLNEoWBOInoCwKDLBpnYg== X-Received: by 2002:a05:620a:29d1:b0:78e:ef0a:387d with SMTP id s17-20020a05620a29d100b0078eef0a387dmr2507242qkp.56.1713209706006; Mon, 15 Apr 2024 12:35:06 -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.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 12:35:05 -0700 (PDT) From: Ricardo Ribalda Date: Mon, 15 Apr 2024 19:34:51 +0000 Subject: [PATCH 34/35] media: hdpvr: 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-34-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/hdpvr/hdpvr-control.c:41:12-13: WARNING opportunity for min() Signed-off-by: Ricardo Ribalda --- drivers/media/usb/hdpvr/hdpvr-control.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/media/usb/hdpvr/hdpvr-control.c b/drivers/media/usb/hdpvr/hdpvr-control.c index 37c53ab85b30..a1bb0231540c 100644 --- a/drivers/media/usb/hdpvr/hdpvr-control.c +++ b/drivers/media/usb/hdpvr/hdpvr-control.c @@ -38,7 +38,9 @@ int hdpvr_config_call(struct hdpvr_device *dev, uint value, u8 valbuf) "config call request for value 0x%x returned %d\n", value, ret); - return ret < 0 ? ret : 0; + if (ret < 0) + return ret; + return 0; } int get_video_info(struct hdpvr_device *dev, struct hdpvr_video_info *vidinf) -- 2.44.0.683.g7961c838ac-goog