diff options
author | Supriya Karanth <iskaranth@gmail.com> | 2015-03-12 13:26:18 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-16 16:17:31 +0100 |
commit | 5900adaee8cacb6a188ca9cd888a791585f71c4d (patch) | |
tree | a8dd4926e939396d5c547f92bd6cb2f0be2dd4ee /drivers/staging/i2o | |
parent | 2049f1ea88fa07e5912c67c4c623bb342b4b02af (diff) | |
download | op-kernel-dev-5900adaee8cacb6a188ca9cd888a791585f71c4d.zip op-kernel-dev-5900adaee8cacb6a188ca9cd888a791585f71c4d.tar.gz |
staging: i2o: remove intialization of static ints
static ints are initialized to 0 by the compiler.
Explicit initialization is not necessary.
Found by checkpatch.pl - ERROR: do not initialise statics to 0 or NULL
changes made using coccinelle script:
@@
type T;
identifier var;
@@
static T var
- =0
;
Signed-off-by: Supriya Karanth <iskaranth@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/i2o')
-rw-r--r-- | drivers/staging/i2o/i2o_block.c | 2 | ||||
-rw-r--r-- | drivers/staging/i2o/i2o_config.c | 2 | ||||
-rw-r--r-- | drivers/staging/i2o/iop.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/i2o/i2o_block.c b/drivers/staging/i2o/i2o_block.c index 0a13c64..7784787 100644 --- a/drivers/staging/i2o/i2o_block.c +++ b/drivers/staging/i2o/i2o_block.c @@ -1028,7 +1028,7 @@ static int i2o_block_probe(struct device *dev) struct i2o_block_device *i2o_blk_dev; struct gendisk *gd; struct request_queue *queue; - static int unit = 0; + static int unit; int rc; u64 size; u32 blocksize; diff --git a/drivers/staging/i2o/i2o_config.c b/drivers/staging/i2o/i2o_config.c index 5748663..cd7ca5e 100644 --- a/drivers/staging/i2o/i2o_config.c +++ b/drivers/staging/i2o/i2o_config.c @@ -64,7 +64,7 @@ struct i2o_cfg_info { struct i2o_cfg_info *next; }; static struct i2o_cfg_info *open_files = NULL; -static ulong i2o_cfg_info_id = 0; +static ulong i2o_cfg_info_id; static int i2o_cfg_getiops(unsigned long arg) { diff --git a/drivers/staging/i2o/iop.c b/drivers/staging/i2o/iop.c index 52334fc..6cae63c 100644 --- a/drivers/staging/i2o/iop.c +++ b/drivers/staging/i2o/iop.c @@ -1042,7 +1042,7 @@ static void i2o_iop_release(struct device *dev) */ struct i2o_controller *i2o_iop_alloc(void) { - static int unit = 0; /* 0 and 1 are NULL IOP and Local Host */ + static int unit; /* 0 and 1 are NULL IOP and Local Host */ struct i2o_controller *c; char poolname[32]; |