Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp866696pxf; Thu, 18 Mar 2021 13:31:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw99uij5jNR9w7BB2VGCfRs5rCMRLVQ9DcHAbuMpFY3CwEuX0gwsXzDfoiM3sF2TL2DuYav X-Received: by 2002:a17:906:3488:: with SMTP id g8mr423100ejb.282.1616099488594; Thu, 18 Mar 2021 13:31:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616099488; cv=none; d=google.com; s=arc-20160816; b=MQMqJpXwrsAh6Jg9VEsE1s9SIEAKI2u5gmcuyCkVtk42vcfnr0U8R8L5FjCaUzu4GR Z8CUOdmLuXD+CtAZ2CA4fnE6kXvzhxSKkfFCJowR1lUEdsiWVTy/8nWCYeq4za+i129P FWjfOKYvN1V0TpGlNrDcsvJhixIh+R/ZGSgf6nfXxolteWbcmqMlIBHmnLW7S21Gsfyp bCJHnv4sWP7NpMDVwDgZ0ywmelHN0gNhp1eKheYaijDuFZb6O8MD9Z7RBgJo1xPRtU08 16K6JITi613ko21ykd4ellHx8VIuenKYiSYhV+XGITA0fW6J3LQRmrnFaDPrpIBtxE3M Rqzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=AikJF0GK0ZzYGbwbgBUzJRLCgyMvlKF2iA5mDBYu/f0=; b=qXbIPDAUQVobjPGM/QDcAJUgu5kdoRBQG35mh/cCzaC3ub3fNmss0UdORYdTEWQq7E jDWsHNzoQphmJVh6+PQLvwLHUp5MxpoM+F0JcqORG17imI1tGhfvpHTSAwCkvBxvgR7m MIr+SZr1cEM7FUoDwNzIytHfpwHYRGFyS6ldPU18RJYwNiUJ1BupIEPBioN+5CcRIjeu OgmueYqu2cNdXWbhehqCAB0oZeubwRQIi5uENV3sd3B72grMHGkWmB1xu2triJKCLPai L4+GGUA96gmDxHTLg1aJyX+r8UbDEEM+9lwo3Vv6+9uZM1/P70MKbK/BIvxohPXKlegf 1okw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=XcVCC0TX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w5si2297509ejz.607.2021.03.18.13.31.06; Thu, 18 Mar 2021 13:31:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=XcVCC0TX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233179AbhCRU3p (ORCPT + 99 others); Thu, 18 Mar 2021 16:29:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233049AbhCRU3d (ORCPT ); Thu, 18 Mar 2021 16:29:33 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5EFEC061761 for ; Thu, 18 Mar 2021 13:29:32 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id x21so8297415eds.4 for ; Thu, 18 Mar 2021 13:29:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=AikJF0GK0ZzYGbwbgBUzJRLCgyMvlKF2iA5mDBYu/f0=; b=XcVCC0TXAxCkk11KeRyOn0JTuZrkWx3saposQBwFuI37IjreBjO0c3c0XAd+CTjPZy rrdDXGmLXEJ9jI4nnRnZyV2hIBJuo6OnA9DJUFAbJ0nEKUiVDYAi/edLa4sDxhYq3m84 31D5LSS7JQJCVxUj4ZdQmGmV/0w4uIg6hU8kg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=AikJF0GK0ZzYGbwbgBUzJRLCgyMvlKF2iA5mDBYu/f0=; b=aHcDyDJFw5pgFAiWT2NLbtQme3l7icBwUYLcCakxRz64fPYbJnhziuLll7YRb5qnAW yfAsdMSKAsRdD+UgQ+2HCuFmELCuC5TiGVv70zxYrnjPixNthoGh42Im2Vl573aUVBR9 +UU+38KyGKVg01/TdfVi4Lt67e5Ilcsnq0UdSjVE7UWGr3CHwq3ZOzCLVDwfzpzRpvr6 U5pyBGF/XrczeUkwE1T9ah2UjpHNY7MQug0xuzWnHZ9/gOoZn+VzTMF7xuq+1hoPaQbp PrH8GecgT0ZzPfr255Us/HmiNoz4//eXklSSEQ3l5Z9h03oybHcU00HQ+UeE4ZcEOHU6 r5cA== X-Gm-Message-State: AOAM532XPzhiNIWehY5DzbRCdhBBgxOEw3iZ4YcVsYR9GtWnM1uWbh15 CsPNnmA2+8GpFcpIFJICMGA5OA== X-Received: by 2002:a05:6402:3096:: with SMTP id de22mr5882368edb.141.1616099371445; Thu, 18 Mar 2021 13:29:31 -0700 (PDT) Received: from alco.lan ([80.71.134.83]) by smtp.gmail.com with ESMTPSA id a22sm2533767ejr.89.2021.03.18.13.29.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Mar 2021 13:29:31 -0700 (PDT) From: Ricardo Ribalda To: Laurent Pinchart , Mauro Carvalho Chehab , Hans Verkuil , Sergey Senozhatsky , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, tfiga@chromium.org Cc: Ricardo Ribalda , Mike Isely Subject: [PATCH v7 02/17] media: pvrusb2: Do not check for V4L2_CTRL_WHICH_DEF_VAL Date: Thu, 18 Mar 2021 21:29:13 +0100 Message-Id: <20210318202928.166955-3-ribalda@chromium.org> X-Mailer: git-send-email 2.31.0.rc2.261.g7f71774620-goog In-Reply-To: <20210318202928.166955-1-ribalda@chromium.org> References: <20210318202928.166955-1-ribalda@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The framework already checks for us if V4L2_CTRL_WHICH_DEF_VAL is written. Cc: Mike Isely Signed-off-by: Ricardo Ribalda Reviewed-by: Hans Verkuil --- drivers/media/usb/pvrusb2/pvrusb2-v4l2.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/media/usb/pvrusb2/pvrusb2-v4l2.c b/drivers/media/usb/pvrusb2/pvrusb2-v4l2.c index 9657c1883311..c04ab7258d64 100644 --- a/drivers/media/usb/pvrusb2/pvrusb2-v4l2.c +++ b/drivers/media/usb/pvrusb2/pvrusb2-v4l2.c @@ -640,10 +640,6 @@ static int pvr2_s_ext_ctrls(struct file *file, void *priv, unsigned int idx; int ret; - /* Default value cannot be changed */ - if (ctls->which == V4L2_CTRL_WHICH_DEF_VAL) - return -EINVAL; - ret = 0; for (idx = 0; idx < ctls->count; idx++) { ctrl = ctls->controls + idx; -- 2.31.0.rc2.261.g7f71774620-goog