mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
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>
This commit is contained in:
parent
9543b4e320
commit
1f1517fafd
1 changed files with 0 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue