]> git.karo-electronics.de Git - linux-beck.git/commit
drivers: staging: Drop unlikely before IS_ERR(_OR_NULL)
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 31 Jul 2015 08:38:30 +0000 (14:08 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 Jul 2015 23:18:43 +0000 (16:18 -0700)
commit7f44cb0ba88b40c09c5bdfc46186e09f42b1a9b0
treea4e0177377ccf9baf3c888e99bb8f71e8ed98e5e
parentb3c1a61744d02ca2c249dae04c8eb8f5b0822bc3
drivers: staging: Drop unlikely before IS_ERR(_OR_NULL)

IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag and there
is no need to do that again from its callers. Drop it.

This also replaces an IS_ERR(x) + (x == NULL) check to IS_ERR_OR_NULL
check.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ashmem.c
drivers/staging/lustre/include/linux/libcfs/libcfs.h
drivers/staging/lustre/lustre/obdclass/lu_object.c