staging: lustre: lustre: obdclass: lprocfs_status.c: Removed an unnecessary NULL...
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Sun, 21 Dec 2014 18:30:50 +0000 (19:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jan 2015 23:46:22 +0000 (15:46 -0800)
Removed an unnecessary NULL check.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/obdclass/lprocfs_status.c

index 9043f72c21ba1301e5248cd22adc920e7f16b9ad..572ecada0f9353d0a8d5a207af8eb4a84e712bce 100644 (file)
@@ -1881,7 +1881,7 @@ int lprocfs_write_frac_u64_helper(const char *buffer, unsigned long count,
        if (pbuf == end)
                return -EINVAL;
 
-       if (end != NULL && *end == '.') {
+       if (*end == '.') {
                int i;
                pbuf = end + 1;