]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: sp8870: coding style fixes: miscellaneous
authorStefan Herdler <herdler@nurfuerspam.de>
Tue, 7 May 2024 00:24:44 +0000 (02:24 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 4 Jun 2024 14:19:55 +0000 (16:19 +0200)
commit72707bdc22e2586232585935fa088bedb9a8940d
tree73a8e52600897ea5dddbf267e539e9062e962686
parent5f0edb7a8ba01f9328b6899282ac577c15d2a6af
media: sp8870: coding style fixes: miscellaneous

This patch fixes the following checkpatch:

ERROR:ASSIGN_IN_IF: do not use assignment in if condition
WARNING:BRACES: braces {} are not necessary for any arm of this statement
WARNING:CONST_STRUCT: struct dvb_frontend_ops should normally be const
WARNING:EXPORT_SYMBOL: EXPORT_SYMBOL(foo); should immediately follow its function/variable
CHECK:ALLOC_SIZEOF_STRUCT: Prefer kzalloc(sizeof(*state)...) over kzalloc(sizeof(struct sp8870_state)...)
CHECK:AVOID_EXTERNS: extern prototypes should be avoided in .h files
CHECK:COMPARISON_TO_NULL: Comparison to NULL could be written ...
CHECK:MULTIPLE_ASSIGNMENTS: multiple assignments should be avoided

Signed-off-by: Stefan Herdler <herdler@nurfuerspam.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/staging/media/av7110/sp8870.c
drivers/staging/media/av7110/sp8870.h