mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 17:42:03 +02:00
media: s2255: Parenthesize macro argument to avoid precedence issues
Fix 'CHECK: Macro argument 'dev' may be better as '(dev)' to avoid precedence issues' reported by checkpatch.pl in s2255drv.c. Wrap the 'dev' macro argument in parentheses in the dprintk macro. Signed-off-by: Lei Huang <huanglei@kylinos.cn> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
parent
fcd708ee65
commit
f29d0d8219
|
|
@ -348,7 +348,7 @@ static long s2255_vendor_req(struct s2255_dev *dev, unsigned char req,
|
|||
dev_err(dev, S2255_DRIVER_NAME " - " fmt, ##arg)
|
||||
|
||||
#define dprintk(dev, level, fmt, arg...) \
|
||||
v4l2_dbg(level, debug, &dev->v4l2_dev, fmt, ## arg)
|
||||
v4l2_dbg(level, debug, &(dev)->v4l2_dev, fmt, ## arg)
|
||||
|
||||
static struct usb_driver s2255_driver;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user