Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1194187ybi; Fri, 31 May 2019 15:40:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqzHa5rwRKQUG9Lfjimucar9Q/+DWRWlyyIbu7IqHyuJZmYJkSxp9p2iMmhu3+Ue6K9GxrOb X-Received: by 2002:a65:4c84:: with SMTP id m4mr12164562pgt.382.1559342443624; Fri, 31 May 2019 15:40:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559342443; cv=none; d=google.com; s=arc-20160816; b=tavXPMgk1zmHCbJI6OuRKv54idJreSZJaetDFRqrMoiQPtuW6Kx0gSh7pMpx5gvgTk gXBvJNLFL5C8uei7DVUAYjPLSDN1Ge/TqWTHRwc98m97NlXU8BNnfYSBBwSR4pmbru/v WrSC+JGmiJC5Yqrm/4LKxSU0F2b4FQXTAYDbUmkBeciFc+ReGYPxLZC0hKkxdLVeniar qv2lDfVY/CmGqoiQ/T3QDErajMATd6Ryu77enFjJA0Soun8ugtPs1z+3hEGt3xmk1W+N ZYRYjOVHdWhIlmbrEdVlKyXFLo8bo1TEttmWjkfgUCeLlZBKi1rjRi+5/mX4bHMmg8sJ zOog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=s0kzd9b6Eabbf4G5neDYaE5mj5rdFvoSkWVnWVL73nQ=; b=D3XsyAZY1UCPm/7VPXkBLBS+7II1+5gHzRNziPk1cbQG7MSqplEJ5a0e7Q8yVUstA+ B0e0d6gKXN/72X6R7Crkne8Ka5mq408eFkVOeLIZ8X4t6qKvUBft7U8mXbOwd2qqdnX5 p+cCdbHeCbHObxgHusGCtfdWiOSWnn0xxfAwJ9r4LvplbH6vOc0j4ZtSoZsqbPpUP706 QCPtCxikHww0Et/bHIRDcFnbTrnTc1x850ny89+KqyzDe+0UNsMIqb0GKxzpy5GyD9Xb 9m6rxYsz5fUfG2plUWQJFb/YuT+cpDqUL5bzkXA2diUkVDZys19X7oi6Myj5Qg2qYDvL eXSA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a8si7527948pgm.592.2019.05.31.15.40.27; Fri, 31 May 2019 15:40:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726804AbfEaWiK (ORCPT + 99 others); Fri, 31 May 2019 18:38:10 -0400 Received: from vps-vb.mhejs.net ([37.28.154.113]:50622 "EHLO vps-vb.mhejs.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726538AbfEaWiJ (ORCPT ); Fri, 31 May 2019 18:38:09 -0400 Received: from MUA by vps-vb.mhejs.net with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1hWq9x-000715-Tn; Sat, 01 Jun 2019 00:38:01 +0200 From: "Maciej S. Szmigiero" To: Michael Krufky , Mauro Carvalho Chehab Cc: linux-kernel , linux-media@vger.kernel.org, Hans Verkuil , kbuild test robot Subject: [PATCH] media: cxusb-analog: Use ARRAY_SIZE for cxusub_medion_pin_config Date: Sat, 1 Jun 2019 00:37:56 +0200 Message-Id: <20190531223756.1305617-1-mail@maciej.szmigiero.name> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use ARRAY_SIZE for computing element count of cxusub_medion_pin_config array as suggested by the kbuild test robot. Reported-by: kbuild test robot Signed-off-by: Maciej S. Szmigiero --- drivers/media/usb/dvb-usb/cxusb-analog.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media/usb/dvb-usb/cxusb-analog.c b/drivers/media/usb/dvb-usb/cxusb-analog.c index 9b42ca71c177..51d3cba32b60 100644 --- a/drivers/media/usb/dvb-usb/cxusb-analog.c +++ b/drivers/media/usb/dvb-usb/cxusb-analog.c @@ -1622,8 +1622,7 @@ int cxusb_medion_analog_init(struct dvb_usb_device *dvbdev) /* TODO: setup audio samples insertion */ ret = v4l2_subdev_call(cxdev->cx25840, core, s_io_pin_config, - sizeof(cxusub_medion_pin_config) / - sizeof(cxusub_medion_pin_config[0]), + ARRAY_SIZE(cxusub_medion_pin_config), cxusub_medion_pin_config); if (ret != 0) dev_warn(&dvbdev->udev->dev,