mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 23:33:01 -04:00
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:
committed by
Hans Verkuil
parent
a6257cc79a
commit
64b8402431
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user