Whamcloud - gitweb
LU-5396 all: use NULL instead of 0 67/12567/7
authorFrank Zago <fzago@cray.com>
Mon, 29 Sep 2014 02:00:59 +0000 (21:00 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 10 Jan 2015 04:41:25 +0000 (04:41 +0000)
commite49995acfd026f3ca85d05dc1b91d97a8743fe72
tree27ff4ca15eb9cbb9aaad28fa3c4e4e1e74776177
parentad1810a2dbea1eed5e8b5feb55bdf915a545feb3
LU-5396 all: use NULL instead of 0

It is preferable to use NULL instead of 0 for pointers. This fixes sparse
warnings such as:

  lustre/fld/fld_request.c:126:17: warning: Using plain integer as NULL pointer

The second parameter of class_match_param() was changed to a const, to
be able to remove a cast in one user, to prevent splitting a long
line. No other code change.

Change-Id: Icc7b46cef32685c942f5af970d1610467fee4496
Signed-off-by: frank zago <fzago@cray.com>
Reviewed-on: http://review.whamcloud.com/12567
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
54 files changed:
libcfs/include/libcfs/libcfs_ioctl.h
lnet/lnet/api-ni.c
lnet/selftest/console.c
lustre/fld/fld_request.c
lustre/include/lustre_param.h
lustre/ldlm/ldlm_internal.h
lustre/ldlm/ldlm_lib.c
lustre/ldlm/ldlm_lockd.c
lustre/lfsck/lfsck_layout.c
lustre/lfsck/lfsck_lib.c
lustre/lfsck/lfsck_namespace.c
lustre/lfsck/lfsck_striped_dir.c
lustre/llite/llite_lib.c
lustre/llite/lproc_llite.c
lustre/lmv/lproc_lmv.c
lustre/lod/lod_object.c
lustre/lod/lproc_lod.c
lustre/lov/lov_dev.c
lustre/lov/lov_obd.c
lustre/lov/lov_request.c
lustre/lov/lproc_lov.c
lustre/mdc/lproc_mdc.c
lustre/mdd/mdd_dir.c
lustre/mdd/mdd_lproc.c
lustre/mdt/mdt_coordinator.c
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_lproc.c
lustre/mdt/mdt_mds.c
lustre/mdt/mdt_reint.c
lustre/mgc/lproc_mgc.c
lustre/mgc/mgc_request.c
lustre/mgs/lproc_mgs.c
lustre/mgs/mgs_llog.c
lustre/obdclass/linux/linux-module.c
lustre/obdclass/obd_config.c
lustre/obdclass/obd_mount.c
lustre/obdclass/obd_mount_server.c
lustre/obdecho/echo.c
lustre/ofd/lproc_ofd.c
lustre/ofd/ofd_dev.c
lustre/osc/lproc_osc.c
lustre/osc/osc_dev.c
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_iam.c
lustre/osd-ldiskfs/osd_iam_lvar.c
lustre/osd-ldiskfs/osd_lproc.c
lustre/osd-ldiskfs/osd_scrub.c
lustre/osp/lproc_osp.c
lustre/ost/ost_handler.c
lustre/ptlrpc/gss/gss_keyring.c
lustre/ptlrpc/gss/gss_mech_switch.c
lustre/ptlrpc/import.c
lustre/ptlrpc/sec.c
lustre/quota/qsd_handler.c