aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/platform/stm32/stm32-dcmi.c
diff options
context:
space:
mode:
authorNathan Chancellor <[email protected]>2018-09-21 06:00:45 -0400
committerMauro Carvalho Chehab <[email protected]>2018-10-04 14:29:14 -0400
commit44d7f1a77d8c84f8e42789b5475b74ae0e6d4758 (patch)
tree63309764c313556bce441a12898a307f137239bf /drivers/media/platform/stm32/stm32-dcmi.c
parentab8ff650e57dc118c46e4c16921c5dbed9e95baf (diff)
media: pxa_camera: Fix check for pdev->dev.of_node
Clang warns that the address of a pointer will always evaluated as true in a boolean context. drivers/media/platform/pxa_camera.c:2400:17: warning: address of 'pdev->dev.of_node' will always evaluate to 'true' [-Wpointer-bool-conversion] if (&pdev->dev.of_node && !pcdev->pdata) { ~~~~~~~~~~^~~~~~~ ~~ 1 warning generated. Judging from the rest of the kernel, it seems like this was an error and just the value of of_node should be checked rather than the address. Reported-by: Nick Desaulniers <[email protected]> Signed-off-by: Nathan Chancellor <[email protected]> Reviewed-by: Nick Desaulniers <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/media/platform/stm32/stm32-dcmi.c')
0 files changed, 0 insertions, 0 deletions