summary refs log tree commit diff
path: root/drivers/media/pci/cx18
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-11-22 08:32:02 +0000
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-11-22 08:32:02 +0000
commit1f1517fafda598839a02e39968c5063ddcfa51fc (patch)
tree82596311ffa2bf0f370ec0a423f1fb365e96f151 /drivers/media/pci/cx18
parent9543b4e3206621e1e45f7e3a5841359a3a53686d (diff)
downloadlinux-1f1517fafda598839a02e39968c5063ddcfa51fc.tar.gz
media: cx18: drop an unused macro
The macro p_to_snd_cx18_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 <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/pci/cx18')
-rw-r--r--drivers/media/pci/cx18/cx18-alsa-main.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/media/pci/cx18/cx18-alsa-main.c b/drivers/media/pci/cx18/cx18-alsa-main.c
index 9a82e68303b6..9dc361886284 100644
--- a/drivers/media/pci/cx18/cx18-alsa-main.c
+++ b/drivers/media/pci/cx18/cx18-alsa-main.c
@@ -51,12 +51,6 @@ struct snd_cx18_card *to_snd_cx18_card(struct v4l2_device *v4l2_dev)
 	return to_cx18(v4l2_dev)->alsa;
 }
 
-static inline
-struct snd_cx18_card *p_to_snd_cx18_card(struct v4l2_device **v4l2_dev)
-{
-	return container_of(v4l2_dev, struct snd_cx18_card, v4l2_dev);
-}
-
 static void snd_cx18_card_free(struct snd_cx18_card *cxsc)
 {
 	if (cxsc == NULL)