summaryrefslogtreecommitdiffstats
path: root/LICENSES
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-06-28 12:39:05 +0200
committerBoris Brezillon <boris.brezillon@collabora.com>2019-07-02 15:39:32 +0200
commite5704b3fe9d5ffa810abd8ce00215f52f3fd675b (patch)
treef1545ef0a496d4fea37cd48656ffcf45a660b0eb /LICENSES
parentdrm: panel-orientation-quirks: Add extra quirk table entry for GPD MicroPC (diff)
downloadlinux-e5704b3fe9d5ffa810abd8ce00215f52f3fd675b.tar.xz
linux-e5704b3fe9d5ffa810abd8ce00215f52f3fd675b.zip
drm: connector: remove bogus NULL check
mode->name is a character array in a structure, checking it's address is pointless and causes a warning with some compilers: drivers/gpu/drm/drm_connector.c:144:15: error: address of array 'mode->name' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion] mode->name ? mode->name : "", ~~~~~~^~~~ ~ include/drm/drm_print.h:366:29: note: expanded from macro 'DRM_DEBUG_KMS' drm_dbg(DRM_UT_KMS, fmt, ##__VA_ARGS__) ^~~~~~~~~~~ Remove the check here. Fixes: 3aeeb13d8996 ("drm/modes: Support modes names on the command line") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Ramalingam C <ramlaingam.c@intel.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190628103925.2686249-1-arnd@arndb.de
Diffstat (limited to 'LICENSES')
0 files changed, 0 insertions, 0 deletions