[PATCH] drm/atmel-hlcdc: remove unnecessary if statement

2017-08-07 Thread Stefan Agner
The statement always evaluates to true since the struct fields are arrays. This has shown up as a warning when compiling with clang: warning: address of array 'desc->layout.xstride' will always evaluate to 'true' [-Wpointer-bool-conversion] Signed-off-by: Stefan Agner

[PATCH] drm/atmel-hlcdc: remove unnecessary if statement

2017-08-07 Thread Stefan Agner
The statement always evaluates to true since the struct fields are arrays. This has shown up as a warning when compiling with clang: warning: address of array 'desc->layout.xstride' will always evaluate to 'true' [-Wpointer-bool-conversion] Signed-off-by: Stefan Agner ---