diff options
author | kevlo <kevlo@FreeBSD.org> | 2012-10-09 08:27:40 +0000 |
---|---|---|
committer | kevlo <kevlo@FreeBSD.org> | 2012-10-09 08:27:40 +0000 |
commit | 8747a46991f804159ec832961138fbafc8489e41 (patch) | |
tree | e7c16f01159a965270042d2eee89fe0f8bea4679 /sys/dev | |
parent | 543514a78ba423fb4c2351e080e8822ed44312d1 (diff) | |
download | FreeBSD-src-8747a46991f804159ec832961138fbafc8489e41.zip FreeBSD-src-8747a46991f804159ec832961138fbafc8489e41.tar.gz |
Prefer NULL over 0 for pointers
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/bktr/bktr_mem.c | 2 | ||||
-rw-r--r-- | sys/dev/cxgb/cxgb_t3fw.c | 10 | ||||
-rw-r--r-- | sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb.c | 2 | ||||
-rw-r--r-- | sys/dev/cxgb/ulp/tom/cxgb_tom.c | 2 | ||||
-rw-r--r-- | sys/dev/cxgbe/tom/t4_tom.c | 2 | ||||
-rw-r--r-- | sys/dev/drm2/drm_drv.c | 2 | ||||
-rw-r--r-- | sys/dev/iscsi/initiator/iscsi.c | 6 | ||||
-rw-r--r-- | sys/dev/mxge/mxge_eth_z8e.c | 2 | ||||
-rw-r--r-- | sys/dev/mxge/mxge_ethp_z8e.c | 2 | ||||
-rw-r--r-- | sys/dev/mxge/mxge_rss_eth_z8e.c | 2 | ||||
-rw-r--r-- | sys/dev/mxge/mxge_rss_ethp_z8e.c | 2 | ||||
-rw-r--r-- | sys/dev/nvd/nvd.c | 2 | ||||
-rw-r--r-- | sys/dev/nvme/nvme.c | 2 | ||||
-rw-r--r-- | sys/dev/rndtest/rndtest.c | 2 | ||||
-rw-r--r-- | sys/dev/streams/streams.c | 2 | ||||
-rw-r--r-- | sys/dev/tdfx/tdfx_linux.c | 2 | ||||
-rw-r--r-- | sys/dev/usb/net/usb_ethernet.c | 2 | ||||
-rw-r--r-- | sys/dev/utopia/utopia.c | 2 | ||||
-rw-r--r-- | sys/dev/virtio/virtio.c | 2 |
19 files changed, 25 insertions, 25 deletions
diff --git a/sys/dev/bktr/bktr_mem.c b/sys/dev/bktr/bktr_mem.c index 77c5971..e4e5487 100644 --- a/sys/dev/bktr/bktr_mem.c +++ b/sys/dev/bktr/bktr_mem.c @@ -182,7 +182,7 @@ bktr_retrieve_address(int unit, int type) static moduledata_t bktr_mem_mod = { "bktr_mem", bktr_mem_modevent, - 0 + NULL }; /* diff --git a/sys/dev/cxgb/cxgb_t3fw.c b/sys/dev/cxgb/cxgb_t3fw.c index 44a4103..fcfb5de 100644 --- a/sys/dev/cxgb/cxgb_t3fw.c +++ b/sys/dev/cxgb/cxgb_t3fw.c @@ -43,7 +43,7 @@ cxgb_t3fw_modevent(module_t mod, int type, void *unused) static moduledata_t cxgb_t3fw_mod = { "cxgb_t3fw", cxgb_t3fw_modevent, - 0 + NULL }; DECLARE_MODULE(cxgb_t3fw, cxgb_t3fw_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST); MODULE_VERSION(cxgb_t3fw, 1); @@ -76,7 +76,7 @@ cxgb_t3b_protocol_sram_modevent(module_t mod, int type, void *unused) static moduledata_t cxgb_t3b_protocol_sram_mod = { "cxgb_t3b_protocol_sram", cxgb_t3b_protocol_sram_modevent, - 0 + NULL }; DECLARE_MODULE(cxgb_t3b_protocol_sram, cxgb_t3b_protocol_sram_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST); MODULE_VERSION(cxgb_t3b_protocol_sram, 1); @@ -109,7 +109,7 @@ cxgb_t3b_tp_eeprom_modevent(module_t mod, int type, void *unused) static moduledata_t cxgb_t3b_tp_eeprom_mod = { "cxgb_t3b_tp_eeprom", cxgb_t3b_tp_eeprom_modevent, - 0 + NULL }; DECLARE_MODULE(cxgb_t3b_tp_eeprom, cxgb_t3b_tp_eeprom_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST); MODULE_VERSION(cxgb_t3b_tp_eeprom, 1); @@ -142,7 +142,7 @@ cxgb_t3c_protocol_sram_modevent(module_t mod, int type, void *unused) static moduledata_t cxgb_t3c_protocol_sram_mod = { "cxgb_t3c_protocol_sram", cxgb_t3c_protocol_sram_modevent, - 0 + NULL }; DECLARE_MODULE(cxgb_t3c_protocol_sram, cxgb_t3c_protocol_sram_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST); MODULE_VERSION(cxgb_t3c_protocol_sram, 1); @@ -175,7 +175,7 @@ cxgb_t3c_tp_eeprom_modevent(module_t mod, int type, void *unused) static moduledata_t cxgb_t3c_tp_eeprom_mod = { "cxgb_t3c_tp_eeprom", cxgb_t3c_tp_eeprom_modevent, - 0 + NULL }; DECLARE_MODULE(cxgb_t3c_tp_eeprom, cxgb_t3c_tp_eeprom_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST); MODULE_VERSION(cxgb_t3c_tp_eeprom, 1); diff --git a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb.c b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb.c index c8652a0..cbdb130 100644 --- a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb.c +++ b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb.c @@ -290,7 +290,7 @@ iwch_modevent(module_t mod, int cmd, void *arg) static moduledata_t iwch_mod_data = { "iw_cxgb", iwch_modevent, - 0 + NULL }; MODULE_VERSION(iw_cxgb, 1); diff --git a/sys/dev/cxgb/ulp/tom/cxgb_tom.c b/sys/dev/cxgb/ulp/tom/cxgb_tom.c index 8f0dd25..bd70b06 100644 --- a/sys/dev/cxgb/ulp/tom/cxgb_tom.c +++ b/sys/dev/cxgb/ulp/tom/cxgb_tom.c @@ -387,7 +387,7 @@ t3_tom_modevent(module_t mod, int cmd, void *arg) static moduledata_t t3_tom_moddata= { "t3_tom", t3_tom_modevent, - 0 + NULL }; MODULE_VERSION(t3_tom, 1); diff --git a/sys/dev/cxgbe/tom/t4_tom.c b/sys/dev/cxgbe/tom/t4_tom.c index 330172d..5d47ad3 100644 --- a/sys/dev/cxgbe/tom/t4_tom.c +++ b/sys/dev/cxgbe/tom/t4_tom.c @@ -768,7 +768,7 @@ t4_tom_modevent(module_t mod, int cmd, void *arg) static moduledata_t t4_tom_moddata= { "t4_tom", t4_tom_modevent, - 0 + NULL }; MODULE_VERSION(t4_tom, 1); diff --git a/sys/dev/drm2/drm_drv.c b/sys/dev/drm2/drm_drv.c index 33e50ea..efffcbb 100644 --- a/sys/dev/drm2/drm_drv.c +++ b/sys/dev/drm2/drm_drv.c @@ -74,7 +74,7 @@ drm_modevent(module_t mod, int type, void *data) static moduledata_t drm_mod = { "drmn", drm_modevent, - 0 + NULL }; DECLARE_MODULE(drmn, drm_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST); MODULE_VERSION(drmn, 1); diff --git a/sys/dev/iscsi/initiator/iscsi.c b/sys/dev/iscsi/initiator/iscsi.c index a93a685..899501a 100644 --- a/sys/dev/iscsi/initiator/iscsi.c +++ b/sys/dev/iscsi/initiator/iscsi.c @@ -855,9 +855,9 @@ iscsi_modevent(module_t mod, int what, void *arg) } moduledata_t iscsi_mod = { - "iscsi", - (modeventhand_t) iscsi_modevent, - 0 + "iscsi", + (modeventhand_t) iscsi_modevent, + NULL }; #ifdef ISCSI_ROOT diff --git a/sys/dev/mxge/mxge_eth_z8e.c b/sys/dev/mxge/mxge_eth_z8e.c index 570f654..497fd3b 100644 --- a/sys/dev/mxge/mxge_eth_z8e.c +++ b/sys/dev/mxge/mxge_eth_z8e.c @@ -39,7 +39,7 @@ mxge_eth_z8e_fw_modevent(module_t mod, int type, void *unused) static moduledata_t mxge_eth_z8e_fw_mod = { "mxge_eth_z8e_fw", mxge_eth_z8e_fw_modevent, - 0 + NULL }; DECLARE_MODULE(mxge_eth_z8e_fw, mxge_eth_z8e_fw_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST); MODULE_VERSION(mxge_eth_z8e_fw, 1); diff --git a/sys/dev/mxge/mxge_ethp_z8e.c b/sys/dev/mxge/mxge_ethp_z8e.c index 8d0e31b..d41a080 100644 --- a/sys/dev/mxge/mxge_ethp_z8e.c +++ b/sys/dev/mxge/mxge_ethp_z8e.c @@ -39,7 +39,7 @@ mxge_ethp_z8e_fw_modevent(module_t mod, int type, void *unused) static moduledata_t mxge_ethp_z8e_fw_mod = { "mxge_ethp_z8e_fw", mxge_ethp_z8e_fw_modevent, - 0 + NULL }; DECLARE_MODULE(mxge_ethp_z8e_fw, mxge_ethp_z8e_fw_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST); MODULE_VERSION(mxge_ethp_z8e_fw, 1); diff --git a/sys/dev/mxge/mxge_rss_eth_z8e.c b/sys/dev/mxge/mxge_rss_eth_z8e.c index d31907a..d41ab4a 100644 --- a/sys/dev/mxge/mxge_rss_eth_z8e.c +++ b/sys/dev/mxge/mxge_rss_eth_z8e.c @@ -39,7 +39,7 @@ mxge_rss_eth_z8e_fw_modevent(module_t mod, int type, void *unused) static moduledata_t mxge_rss_eth_z8e_fw_mod = { "mxge_rss_eth_z8e_fw", mxge_rss_eth_z8e_fw_modevent, - 0 + NULL }; DECLARE_MODULE(mxge_rss_eth_z8e_fw, mxge_rss_eth_z8e_fw_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST); MODULE_VERSION(mxge_rss_eth_z8e_fw, 1); diff --git a/sys/dev/mxge/mxge_rss_ethp_z8e.c b/sys/dev/mxge/mxge_rss_ethp_z8e.c index ca7be0e..84cfe23 100644 --- a/sys/dev/mxge/mxge_rss_ethp_z8e.c +++ b/sys/dev/mxge/mxge_rss_ethp_z8e.c @@ -39,7 +39,7 @@ mxge_rss_ethp_z8e_fw_modevent(module_t mod, int type, void *unused) static moduledata_t mxge_rss_ethp_z8e_fw_mod = { "mxge_rss_ethp_z8e_fw", mxge_rss_ethp_z8e_fw_modevent, - 0 + NULL }; DECLARE_MODULE(mxge_rss_ethp_z8e_fw, mxge_rss_ethp_z8e_fw_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST); MODULE_VERSION(mxge_rss_ethp_z8e_fw, 1); diff --git a/sys/dev/nvd/nvd.c b/sys/dev/nvd/nvd.c index 2017d79..11239ef 100644 --- a/sys/dev/nvd/nvd.c +++ b/sys/dev/nvd/nvd.c @@ -93,7 +93,7 @@ static int nvd_modevent(module_t mod, int type, void *arg) moduledata_t nvd_mod = { "nvd", (modeventhand_t)nvd_modevent, - 0 + NULL }; DECLARE_MODULE(nvd, nvd_mod, SI_SUB_DRIVERS, SI_ORDER_ANY); diff --git a/sys/dev/nvme/nvme.c b/sys/dev/nvme/nvme.c index edc536e..350e04a 100644 --- a/sys/dev/nvme/nvme.c +++ b/sys/dev/nvme/nvme.c @@ -177,7 +177,7 @@ nvme_modevent(module_t mod, int type, void *arg) moduledata_t nvme_mod = { "nvme", (modeventhand_t)nvme_modevent, - 0 + NULL }; DECLARE_MODULE(nvme, nvme_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST); diff --git a/sys/dev/rndtest/rndtest.c b/sys/dev/rndtest/rndtest.c index 4e42aa8..1803e0d 100644 --- a/sys/dev/rndtest/rndtest.c +++ b/sys/dev/rndtest/rndtest.c @@ -402,7 +402,7 @@ rndtest_modevent(module_t mod, int type, void *unused) static moduledata_t rndtest_mod = { "rndtest", rndtest_modevent, - 0 + NULL }; DECLARE_MODULE(rndtest, rndtest_mod, SI_SUB_DRIVERS, SI_ORDER_ANY); MODULE_VERSION(rndtest, 1); diff --git a/sys/dev/streams/streams.c b/sys/dev/streams/streams.c index ad2817f..73be7ff 100644 --- a/sys/dev/streams/streams.c +++ b/sys/dev/streams/streams.c @@ -171,7 +171,7 @@ streams_modevent(module_t mod, int type, void *unused) static moduledata_t streams_mod = { "streams", streams_modevent, - 0 + NULL }; DECLARE_MODULE(streams, streams_mod, SI_SUB_DRIVERS, SI_ORDER_ANY); MODULE_VERSION(streams, 1); diff --git a/sys/dev/tdfx/tdfx_linux.c b/sys/dev/tdfx/tdfx_linux.c index 0b769f0..e3d2197 100644 --- a/sys/dev/tdfx/tdfx_linux.c +++ b/sys/dev/tdfx/tdfx_linux.c @@ -78,7 +78,7 @@ tdfx_linux_modevent(struct module *mod __unused, int what, void *arg __unused) static moduledata_t tdfx_linux_mod = { "tdfx_linux", tdfx_linux_modevent, - 0 + NULL }; /* As in SYSCALL_MODULE */ diff --git a/sys/dev/usb/net/usb_ethernet.c b/sys/dev/usb/net/usb_ethernet.c index 2a7bddf..6857bac 100644 --- a/sys/dev/usb/net/usb_ethernet.c +++ b/sys/dev/usb/net/usb_ethernet.c @@ -549,7 +549,7 @@ uether_modevent(module_t mod, int type, void *data) static moduledata_t uether_mod = { "uether", uether_modevent, - 0 + NULL }; struct mbuf * diff --git a/sys/dev/utopia/utopia.c b/sys/dev/utopia/utopia.c index a4e7331..b9c68f3 100644 --- a/sys/dev/utopia/utopia.c +++ b/sys/dev/utopia/utopia.c @@ -668,7 +668,7 @@ utopia_mod_init(module_t mod, int what, void *arg) static moduledata_t utopia_mod = { "utopia", utopia_mod_init, - 0 + NULL }; DECLARE_MODULE(utopia, utopia_mod, SI_SUB_INIT_IF, SI_ORDER_ANY); diff --git a/sys/dev/virtio/virtio.c b/sys/dev/virtio/virtio.c index 1cac3c7..bd893a2 100644 --- a/sys/dev/virtio/virtio.c +++ b/sys/dev/virtio/virtio.c @@ -269,7 +269,7 @@ virtio_modevent(module_t mod, int type, void *unused) static moduledata_t virtio_mod = { "virtio", virtio_modevent, - 0 + NULL }; DECLARE_MODULE(virtio, virtio_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST); |