]> git.hungrycats.org Git - linux/commitdiff
[PATCH] NULL noise removal
authorAlexander Viro <viro@www.linux.org.uk>
Thu, 26 Aug 2004 01:12:45 +0000 (18:12 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 26 Aug 2004 01:12:45 +0000 (18:12 -0700)
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/ipmi/ipmi_poweroff.c
drivers/mtd/maps/edb7312.c
drivers/mtd/maps/impa7.c
drivers/usb/host/ehci-hub.c
net/ipv4/netfilter/ip_conntrack_proto_sctp.c
net/sunrpc/auth_gss/gss_spkm3_seal.c

index bb8544385d977f0aeccc07a6338beaf76a40d8e9..7e7503df711598e810c34fbfee17860bab4f3df4 100644 (file)
@@ -424,7 +424,7 @@ static void ipmi_po_new_smi(int if_num)
        if (ready)
                return;
 
-       rv = ipmi_create_user(if_num, &ipmi_poweroff_handler, 0, &ipmi_user);
+       rv = ipmi_create_user(if_num, &ipmi_poweroff_handler, NULL, &ipmi_user);
        if (rv) {
                printk(KERN_ERR PFX "could not create IPMI user, error %d\n",
                       rv);
index 842f1b0465bb211021dc2d6c59e56801d1ba077b..b7fd849dc1fc2927608524eefb7acf09d9ec2443 100644 (file)
@@ -71,14 +71,14 @@ static const char *probes[] = { "RedBoot", "cmdlinepart", NULL };
 
 #endif
 
-static int                   mtd_parts_nb = 0;
-static struct mtd_partition *mtd_parts    = 0;
+static int mtd_parts_nb;
+static struct mtd_partition *mtd_parts;
 
 int __init init_edb7312nor(void)
 {
        static const char *rom_probe_types[] = PROBETYPES;
        const char **type;
-       const char *part_type = 0;
+       const char *part_type = NULL;
 
                printk(KERN_NOTICE MSG_PREFIX "0x%08x at 0x%08x\n", 
               WINDOW_SIZE, WINDOW_ADDR);
@@ -92,7 +92,7 @@ int __init init_edb7312nor(void)
        
        simple_map_init(&edb7312nor_map);
 
-       mymtd = 0;
+       mymtd = NULL;
        type = rom_probe_types;
        for(; !mymtd && *type; type++) {
                mymtd = do_map_probe(*type, &edb7312nor_map);
index a05fc01b93672f580062eaf879258ab7d9511909..7d2b42436958a7521caccd5255887426c867db77 100644 (file)
@@ -77,7 +77,7 @@ int __init init_impa7(void)
 {
        static const char *rom_probe_types[] = PROBETYPES;
        const char **type;
-       const char *part_type = 0;
+       const char *part_type = NULL;
        int i;
        static struct { u_long addr; u_long size; } pt[NUM_FLASHBANKS] = {
          { WINDOW_ADDR0, WINDOW_SIZE0 },
@@ -99,7 +99,7 @@ int __init init_impa7(void)
                }
                simple_map_init(&impa7_map[i]);
 
-               impa7_mtd[i] = 0;
+               impa7_mtd[i] = NULL;
                type = rom_probe_types;
                for(; !impa7_mtd[i] && *type; type++) {
                        impa7_mtd[i] = do_map_probe(*type, &impa7_map[i]);
index 452c73ede7df58e8d5ec343a3732479ccb00d4d9..438701e17946f73c22b6b9793967478c440c0c1c 100644 (file)
@@ -146,8 +146,8 @@ static int ehci_hub_resume (struct usb_hcd *hcd)
 
 #else
 
-#define ehci_hub_suspend       0
-#define ehci_hub_resume                0
+#define ehci_hub_suspend       NULL
+#define ehci_hub_resume                NULL
 
 #endif /* CONFIG_PM */
 
index 8296e7c52cf88f0a7ef01342942a6d6c82258466..64755c5aed6e6a4a73412f3f336dd90d16183425 100644 (file)
@@ -66,7 +66,7 @@ unsigned long ip_ct_sctp_timeout_shutdown_recd     = 300 SECS / 1000;
 unsigned long ip_ct_sctp_timeout_shutdown_ack_sent =   3 SECS;
 
 static unsigned long * sctp_timeouts[]
-= { 0,                                     /* SCTP_CONNTRACK_NONE  */
+= { NULL,                                  /* SCTP_CONNTRACK_NONE  */
     &ip_ct_sctp_timeout_closed,                   /* SCTP_CONNTRACK_CLOSED */
     &ip_ct_sctp_timeout_cookie_wait,       /* SCTP_CONNTRACK_COOKIE_WAIT */
     &ip_ct_sctp_timeout_cookie_echoed,     /* SCTP_CONNTRACK_COOKIE_ECHOED */
index 289ed358b7e5d2adca31aa358bde13bfb4f75133..25339868d4621bbccdaedc95a3647b3d9843b08d 100644 (file)
@@ -126,7 +126,7 @@ spkm3_make_token(struct spkm3_ctx *ctx, int qop_req,
 out_err:
        if (md5cksum.data) 
                kfree(md5cksum.data);
-       token->data = 0;
+       token->data = NULL;
        token->len = 0;
        return GSS_S_FAILURE;
 }