media: av7110: coding style fixes: miscellaneous

This patch fixes the following checkpatch warnings:

WARNING:OOM_MESSAGE: Possible unnecessary 'out of memory' message
CHECK:MACRO_ARG_REUSE: Macro argument reuse 'fe_func' - possible side-effects?

The MACRO_ARG_REUSE isn't really fixed but marked as intentional.
The comment is visible in the checkpatch warning.

Signed-off-by: Stefan Herdler <herdler@nurfuerspam.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
Stefan Herdler
2024-05-07 02:24:57 +02:00
committed by Hans Verkuil
parent a6257cc79a
commit 64b8402431
2 changed files with 2 additions and 4 deletions

View File

@@ -108,7 +108,7 @@ static int av7110_num;
av7110_copy = fe_func; \
fe_func = av7110_func; \
} \
}
} /* Macro argument reuse of 'fe_func' is intentional! */
static void init_av7110_av(struct av7110 *av7110)
{

View File

@@ -23,10 +23,8 @@ int av7110_ipack_init(struct ipack *p, int size,
void (*func)(u8 *buf, int size, void *priv))
{
p->buf = vmalloc(size);
if (!p->buf) {
printk(KERN_WARNING "Couldn't allocate memory for ipack\n");
if (!p->buf)
return -ENOMEM;
}
p->size = size;
p->func = func;
p->repack_subids = 0;