diff options
author | Denis Efremov <efremov@linux.com> | 2019-08-29 19:50:16 +0300 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2019-09-04 18:42:45 +0300 |
commit | c044e86f541a20085891c41e685a4201064430b5 (patch) | |
tree | acfce2c0da342e33177a16d1a79c2badace9402b /drivers/gpu/drm/msm/disp/mdp_format.c | |
parent | 5fb9b797d5ccf311ae4aba69e86080d47668b5f7 (diff) | |
download | linux-c044e86f541a20085891c41e685a4201064430b5.tar.xz |
drm/msm: remove unlikely() from WARN_ON() conditions
"unlikely(WARN_ON(x))" is excessive. WARN_ON() already uses unlikely()
internally.
Signed-off-by: Denis Efremov <efremov@linux.com>
Cc: Rob Clark <robdclark@gmail.com>
Cc: Sean Paul <sean@poorly.run>
Cc: Joe Perches <joe@perches.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-arm-msm@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'drivers/gpu/drm/msm/disp/mdp_format.c')
-rw-r--r-- | drivers/gpu/drm/msm/disp/mdp_format.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/disp/mdp_format.c b/drivers/gpu/drm/msm/disp/mdp_format.c index 8afb0f9c04bb..5495d8b3f5b9 100644 --- a/drivers/gpu/drm/msm/disp/mdp_format.c +++ b/drivers/gpu/drm/msm/disp/mdp_format.c @@ -174,7 +174,7 @@ const struct msm_format *mdp_get_format(struct msm_kms *kms, uint32_t format, struct csc_cfg *mdp_get_default_csc_cfg(enum csc_type type) { - if (unlikely(WARN_ON(type >= CSC_MAX))) + if (WARN_ON(type >= CSC_MAX)) return NULL; return &csc_convert[type]; |