Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5900adae authored by Supriya Karanth's avatar Supriya Karanth Committed by Greg Kroah-Hartman
Browse files

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: default avatarSupriya Karanth <iskaranth@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2049f1ea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
+1 −1
Original line number Diff line number Diff line
@@ -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)
{
+1 −1
Original line number Diff line number Diff line
@@ -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];