From patchwork Mon Nov 22 09:26:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 12631493 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B6B23C433F5 for ; Mon, 22 Nov 2021 09:26:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239088AbhKVJ31 (ORCPT ); Mon, 22 Nov 2021 04:29:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:59130 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239024AbhKVJ3W (ORCPT ); Mon, 22 Nov 2021 04:29:22 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 123E360F94; Mon, 22 Nov 2021 09:26:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1637573176; bh=/6WJgmxHsldFG8WQEw4YO71q1zqG0O4P07uLKTGweRA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iLaR8tV/5o+/7qew2X9/D/QMucPsulC3Kzopwr+QqjiJpz2piLh/zsDK1Ce60dIu4 CyZyzGm7ll7WE5qT/maj/6DucxKBf+mvJg/xUxyo8dt4rz8c9nyukRYh3RYXw3LULo RSzIwbfmoCVA6/wTWSmiT1ELvJjoPVZPVMnF17K//4OeYUpy1YDYx71bhJy9IcD3/7 FrEGNKnWrMECAWmcSex30ZFuoADmqEH6KVa3jreaPoMXq+c9X9iLWSzvb4HgDfmgpU u3RMC0AdaKMoXsvpl+qXI3mkKTEXZZU5THtNgQgSss5vpOMtEkqah1V7LnbVjfjB5t B37cffoofOQTA== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mp5aX-003hiG-39; Mon, 22 Nov 2021 09:26:13 +0000 From: Mauro Carvalho Chehab Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , Andy Walls , Mauro Carvalho Chehab , Nathan Chancellor , Nick Desaulniers , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, llvm@lists.linux.dev Subject: [PATCH 02/10] media: ivtv: drop an unused macro Date: Mon, 22 Nov 2021 09:26:04 +0000 Message-Id: <9543b4e3206621e1e45f7e3a5841359a3a53686d.1637573097.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: References: MIME-Version: 1.0 Sender: Mauro Carvalho Chehab To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The macro p_to_snd_ivtv_card() is just a variant for container_of(), not actually used inside the code. So, drop it. This address a clang warning. Signed-off-by: Mauro Carvalho Chehab --- To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH 00/10] at: https://lore.kernel.org/all/cover.1637573097.git.mchehab+huawei@kernel.org/ drivers/media/pci/ivtv/ivtv-alsa-main.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/media/pci/ivtv/ivtv-alsa-main.c b/drivers/media/pci/ivtv/ivtv-alsa-main.c index 4cefdb2e4d40..9e13a7128a53 100644 --- a/drivers/media/pci/ivtv/ivtv-alsa-main.c +++ b/drivers/media/pci/ivtv/ivtv-alsa-main.c @@ -48,12 +48,6 @@ struct snd_ivtv_card *to_snd_ivtv_card(struct v4l2_device *v4l2_dev) return to_ivtv(v4l2_dev)->alsa; } -static inline -struct snd_ivtv_card *p_to_snd_ivtv_card(struct v4l2_device **v4l2_dev) -{ - return container_of(v4l2_dev, struct snd_ivtv_card, v4l2_dev); -} - static void snd_ivtv_card_free(struct snd_ivtv_card *itvsc) { if (itvsc == NULL)