aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAlexander Viro <viro@www.linux.org.uk>2004-07-11 19:07:37 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-07-11 19:07:37 -0700
commit816deba5eea5e575fb47302a60a6e1ab0f2202c1 (patch)
treed4e33d442fe5732635f49662ee4c366de75439ad /fs
parenta606eaf7594c5861f0c70f73cd77d0b7f3a06056 (diff)
downloadhistory-816deba5eea5e575fb47302a60a6e1ab0f2202c1.tar.gz
[PATCH] sparse: misc NULL noise in fs/*
Diffstat (limited to 'fs')
-rw-r--r--fs/cifs/asn1.c2
-rw-r--r--fs/cifs/cifs_uniupr.h2
-rw-r--r--fs/coda/inode.c2
-rw-r--r--fs/coda/psdev.c2
-rw-r--r--fs/coda/sysctl.c2
-rw-r--r--fs/ext2/acl.c2
-rw-r--r--fs/ext3/acl.c2
-rw-r--r--fs/hfsplus/inode.c2
-rw-r--r--fs/hpfs/buffer.c4
-rw-r--r--fs/isofs/compress.c2
-rw-r--r--fs/minix/inode.c4
-rw-r--r--fs/qnx4/inode.c6
-rw-r--r--fs/sysv/inode.c4
13 files changed, 18 insertions, 18 deletions
diff --git a/fs/cifs/asn1.c b/fs/cifs/asn1.c
index a59742e0474b02..cf3c02767fde7e 100644
--- a/fs/cifs/asn1.c
+++ b/fs/cifs/asn1.c
@@ -201,7 +201,7 @@ asn1_header_decode(struct asn1_ctx *ctx,
if (def)
*eoc = ctx->pointer + len;
else
- *eoc = 0;
+ *eoc = NULL;
return 1;
}
diff --git a/fs/cifs/cifs_uniupr.h b/fs/cifs/cifs_uniupr.h
index f31b1b1ac1dc06..decd138f14d47e 100644
--- a/fs/cifs/cifs_uniupr.h
+++ b/fs/cifs/cifs_uniupr.h
@@ -132,7 +132,7 @@ const struct UniCaseRange CifsUniUpperRange[] = {
{0x0490, 0x04cc, UniCaseRangeU0490},
{0x1e00, 0x1ffc, UniCaseRangeU1e00},
{0xff40, 0xff5a, UniCaseRangeUff40},
- {0, 0, 0}
+ {0}
};
#endif
diff --git a/fs/coda/inode.c b/fs/coda/inode.c
index 7345de45fb9a35..9d39ef496b6278 100644
--- a/fs/coda/inode.c
+++ b/fs/coda/inode.c
@@ -142,7 +142,7 @@ static int get_device_index(struct coda_mount_data *data)
static int coda_fill_super(struct super_block *sb, void *data, int silent)
{
- struct inode *root = 0;
+ struct inode *root = NULL;
struct coda_sb_info *sbi = NULL;
struct venus_comm *vc = NULL;
struct CodaFid fid;
diff --git a/fs/coda/psdev.c b/fs/coda/psdev.c
index 7d55a28b214c0f..6793b374047108 100644
--- a/fs/coda/psdev.c
+++ b/fs/coda/psdev.c
@@ -296,7 +296,7 @@ static int coda_psdev_open(struct inode * inode, struct file * file)
INIT_LIST_HEAD(&vcp->vc_pending);
INIT_LIST_HEAD(&vcp->vc_processing);
init_waitqueue_head(&vcp->vc_waitq);
- vcp->vc_sb = 0;
+ vcp->vc_sb = NULL;
vcp->vc_seq = 0;
}
diff --git a/fs/coda/sysctl.c b/fs/coda/sysctl.c
index f1692b56319cf0..60fc6f9ce2404c 100644
--- a/fs/coda/sysctl.c
+++ b/fs/coda/sysctl.c
@@ -240,7 +240,7 @@ void coda_sysctl_clean(void)
#ifdef CONFIG_SYSCTL
if ( fs_table_header ) {
unregister_sysctl_table(fs_table_header);
- fs_table_header = 0;
+ fs_table_header = NULL;
}
#endif
diff --git a/fs/ext2/acl.c b/fs/ext2/acl.c
index 091a3175dce3cb..89d1df91411f6e 100644
--- a/fs/ext2/acl.c
+++ b/fs/ext2/acl.c
@@ -161,7 +161,7 @@ ext2_get_acl(struct inode *inode, int type)
int retval;
if (!test_opt(inode->i_sb, POSIX_ACL))
- return 0;
+ return NULL;
switch(type) {
case ACL_TYPE_ACCESS:
diff --git a/fs/ext3/acl.c b/fs/ext3/acl.c
index fb2410c4704b04..a3cf77de0e43bb 100644
--- a/fs/ext3/acl.c
+++ b/fs/ext3/acl.c
@@ -164,7 +164,7 @@ ext3_get_acl(struct inode *inode, int type)
int retval;
if (!test_opt(inode->i_sb, POSIX_ACL))
- return 0;
+ return NULL;
switch(type) {
case ACL_TYPE_ACCESS:
diff --git a/fs/hfsplus/inode.c b/fs/hfsplus/inode.c
index 69d9ea9948ccc8..5dc9bdbd10600c 100644
--- a/fs/hfsplus/inode.c
+++ b/fs/hfsplus/inode.c
@@ -342,7 +342,7 @@ struct inode *hfsplus_new_inode(struct super_block *sb, int mode)
HFSPLUS_I(inode).cached_start = 0;
HFSPLUS_I(inode).cached_blocks = 0;
HFSPLUS_I(inode).phys_size = 0;
- HFSPLUS_I(inode).rsrc_inode = 0;
+ HFSPLUS_I(inode).rsrc_inode = NULL;
if (S_ISDIR(inode->i_mode)) {
inode->i_size = 2;
HFSPLUS_SB(sb).folder_count++;
diff --git a/fs/hpfs/buffer.c b/fs/hpfs/buffer.c
index 2d5c84455b5db3..2807aa833e6201 100644
--- a/fs/hpfs/buffer.c
+++ b/fs/hpfs/buffer.c
@@ -73,7 +73,7 @@ void *hpfs_map_4sectors(struct super_block *s, unsigned secno, struct quad_buffe
if (secno & 3) {
printk("HPFS: hpfs_map_4sectors: unaligned read\n");
- return 0;
+ return NULL;
}
qbh->data = data = (char *)kmalloc(2048, GFP_NOFS);
@@ -126,7 +126,7 @@ void *hpfs_get_4sectors(struct super_block *s, unsigned secno,
if (secno & 3) {
printk("HPFS: hpfs_get_4sectors: unaligned read\n");
- return 0;
+ return NULL;
}
/*return hpfs_map_4sectors(s, secno, qbh, 0);*/
diff --git a/fs/isofs/compress.c b/fs/isofs/compress.c
index 8877508ea039a6..877b4e47d76a7b 100644
--- a/fs/isofs/compress.c
+++ b/fs/isofs/compress.c
@@ -114,7 +114,7 @@ static int zisofs_readpage(struct file *file, struct page *page)
blockendptr = blockptr + 4;
indexblocks = ((blockptr^blockendptr) >> bufshift) ? 2 : 1;
- ptrbh[0] = ptrbh[1] = 0;
+ ptrbh[0] = ptrbh[1] = NULL;
if ( isofs_get_blocks(inode, blockptr >> bufshift, ptrbh, indexblocks) != indexblocks ) {
if ( ptrbh[0] ) brelse(ptrbh[0]);
diff --git a/fs/minix/inode.c b/fs/minix/inode.c
index 4b52a2ee41be2a..9295de94df66a3 100644
--- a/fs/minix/inode.c
+++ b/fs/minix/inode.c
@@ -453,7 +453,7 @@ static struct buffer_head * V1_minix_update_inode(struct inode * inode)
raw_inode = minix_V1_raw_inode(inode->i_sb, inode->i_ino, &bh);
if (!raw_inode)
- return 0;
+ return NULL;
raw_inode->i_mode = inode->i_mode;
raw_inode->i_uid = fs_high2lowuid(inode->i_uid);
raw_inode->i_gid = fs_high2lowgid(inode->i_gid);
@@ -480,7 +480,7 @@ static struct buffer_head * V2_minix_update_inode(struct inode * inode)
raw_inode = minix_V2_raw_inode(inode->i_sb, inode->i_ino, &bh);
if (!raw_inode)
- return 0;
+ return NULL;
raw_inode->i_mode = inode->i_mode;
raw_inode->i_uid = fs_high2lowuid(inode->i_uid);
raw_inode->i_gid = fs_high2lowgid(inode->i_gid);
diff --git a/fs/qnx4/inode.c b/fs/qnx4/inode.c
index aa9dadb489d798..19b7d5a053e196 100644
--- a/fs/qnx4/inode.c
+++ b/fs/qnx4/inode.c
@@ -232,8 +232,8 @@ unsigned long qnx4_block_map( struct inode *inode, long iblock )
int ix;
long offset, i_xblk;
unsigned long block = 0;
- struct buffer_head *bh = 0;
- struct qnx4_xblk *xblk = 0;
+ struct buffer_head *bh = NULL;
+ struct qnx4_xblk *xblk = NULL;
struct qnx4_inode_entry *qnx4_inode = qnx4_raw_inode(inode);
qnx4_nxtnt_t nxtnt = le16_to_cpu(qnx4_inode->di_num_xtnts);
@@ -269,7 +269,7 @@ unsigned long qnx4_block_map( struct inode *inode, long iblock )
i_xblk = le32_to_cpu(xblk->xblk_next_xblk);
ix = 0;
brelse( bh );
- bh = 0;
+ bh = NULL;
}
}
if ( bh )
diff --git a/fs/sysv/inode.c b/fs/sysv/inode.c
index 960da9b041a41a..2be44b7a9f74d3 100644
--- a/fs/sysv/inode.c
+++ b/fs/sysv/inode.c
@@ -233,12 +233,12 @@ static struct buffer_head * sysv_update_inode(struct inode * inode)
if (!ino || ino > sbi->s_ninodes) {
printk("Bad inode number on dev %s: %d is out of range\n",
inode->i_sb->s_id, ino);
- return 0;
+ return NULL;
}
raw_inode = sysv_raw_inode(sb, ino, &bh);
if (!raw_inode) {
printk("unable to read i-node block\n");
- return 0;
+ return NULL;
}
raw_inode->i_mode = cpu_to_fs16(sbi, inode->i_mode);