ceph: adjust 36 checks for NULL pointers
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 20 Aug 2017 18:22:02 +0000 (20:22 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 6 Sep 2017 17:56:52 +0000 (19:56 +0200)
commitd37b1d9943d5138b9b2630b7b7082629a82a1386
treebf904513456933cbd93e22ce0068e2a6e34802a5
parentb529d1b382f77ec6221f9c5fffb17939e92629e4
ceph: adjust 36 checks for NULL pointers

The script “checkpatch.pl” pointed information out like the following.

Comparison to NULL could be written ...

Thus fix the affected source code places.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Reviewed-by: Yan, Zheng <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/addr.c
fs/ceph/cache.c
fs/ceph/caps.c
fs/ceph/debugfs.c
fs/ceph/file.c
fs/ceph/inode.c
fs/ceph/mds_client.c
fs/ceph/mdsmap.c
fs/ceph/super.c
fs/ceph/xattr.c