Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp525112pxf; Wed, 17 Mar 2021 09:46:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEWrfNS88o3eYXjWV0eoJuxZTY4dfsxXW7ztdyh/DzNQByj4cv6rTB5lTmRPeM288fizjS X-Received: by 2002:a05:6402:32a:: with SMTP id q10mr42566440edw.15.1615999613371; Wed, 17 Mar 2021 09:46:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615999613; cv=none; d=google.com; s=arc-20160816; b=wDueR8KptOTGzZUKnCwx8CaMxELp6Ewh+mCzmkCxrFDnhFc6DcBIPWwmJsjmTTdNiM I/CTFPA03xvSFXnfPC/IcxOjfoUWhzRi/Wt8oFL/5q+Did/QKWkYVzMOQDzNUYjsi470 1dWbFGBfl02IJtKopQQ14FdXhbsx9PUARQVFW3D/Lwybt5UmYdkCazBLBjZRlS0i8eH3 UHZ5FkR+DK4ASjT+8gF27QcSHjWHwIk3Ooj9UqW84ERXPPj8Gr9ZVK3exnhmHr9C96eD WXKWEmemw+XHCeqgcfjBy8+wiS8lwx2c8T0siOmm2inTFIcRisSAzYMXX6U97nnGz3EV 44bQ== 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=fA/68we/kMTkpnR4AV+szAmiaqsAOldil+kVUGgOjPk=; b=hWZ/hFn09NSyBkjkdk7r95vTBYDbNkzN0m69/rAfrSiIaDVjBwElgKc5lETkHBueBS qE1LhEJyLC/0Mrl9Eu87Sbgj2kV1paB80ksJJPfTC53DtEp2sIJmYI7C6JjV56xeMRut wV2zVZ+Mm+To9c0CElTXQ0UkIe/rL9/dKbFHR+JihDOdtHQo56/eiSCHysYz8jLSbaIc LmnJtWBbajG5TMXwqiIuIqb6NgCO9nkbKvkzVsEBhJgaxR92gxDVcPGm2ZKa05l6FOrS RQOdQOvxFwfk1yQtj+YkHzVXVRESzLxtN1Kkh8JlCjGw1r04b0N9eyozeGN070MeAM2e 7Dug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ACrBLyE4; 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 lr3si9811973ejb.215.2021.03.17.09.46.29; Wed, 17 Mar 2021 09:46:53 -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=ACrBLyE4; 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 S232756AbhCQQpl (ORCPT + 99 others); Wed, 17 Mar 2021 12:45:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232642AbhCQQpS (ORCPT ); Wed, 17 Mar 2021 12:45:18 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76288C06174A for ; Wed, 17 Mar 2021 09:45:18 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id h10so3060324edt.13 for ; Wed, 17 Mar 2021 09:45:18 -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=fA/68we/kMTkpnR4AV+szAmiaqsAOldil+kVUGgOjPk=; b=ACrBLyE45qWrT36JGCDQtAW5B4J7WvzPgUK05OiqZsFebHLAGq1PYx9yRpSJ+a5is8 U6Y0bnResftXQNuiKoga6lM35wXJdOnXOhoMxzieghxNB5/DypnXWlekR2Y9dVt0lXsZ bfQh7LbxGT76zH8kM5o3/QjK9M20vBGhdWnkk= 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=fA/68we/kMTkpnR4AV+szAmiaqsAOldil+kVUGgOjPk=; b=TNz0l4i7/CxIM2+/dNtFuZn0ZfTyoFAe6k8QxmZI4cWPVGKVoc7WlH2rsXdOk2rc7D knYFP3dIOhho5VNYbHGhlzOHZtcMZ6DDbFcTDoXplXqErhl6y4hNztOu4ilDynF4sqdl iWTh5fQGUChEKVJDgMKHNM8mDRM4C+Hn6JjAoODITHaT75WuC4vSIn3x4giY10IlR2Rl pZdavg2h/4Y1WKF3PiK7c+pM+Efmd03qSol0KBf9zVZ6SrBW99DHYu1oJ7nMT+YE7M4O TQtsemlYhNUCs+ldmPp4dz/UcLSOsX/8PlgZUJTyed2RerjqKNTBNb8LImxq2NY5ql8J J3TA== X-Gm-Message-State: AOAM530XSGIUEoHyObGqPkMxUvs2OY/W+nFGBgS4ErjPOtU43M1F7SlT o2wnz2jJ/g9kpMfYgvBwv19EIA== X-Received: by 2002:aa7:cf17:: with SMTP id a23mr44276595edy.30.1615999517240; Wed, 17 Mar 2021 09:45:17 -0700 (PDT) Received: from alco.lan ([80.71.134.83]) by smtp.gmail.com with ESMTPSA id hy25sm12088128ejc.119.2021.03.17.09.45.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Mar 2021 09:45:16 -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 v6 05/17] media: pvrusb2: Do not check for V4L2_CTRL_WHICH_DEF_VAL Date: Wed, 17 Mar 2021 17:44:59 +0100 Message-Id: <20210317164511.39967-6-ribalda@chromium.org> X-Mailer: git-send-email 2.31.0.rc2.261.g7f71774620-goog In-Reply-To: <20210317164511.39967-1-ribalda@chromium.org> References: <20210317164511.39967-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 --- 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