summaryrefslogtreecommitdiff
path: root/drivers/staging/i2o/iop.c
diff options
context:
space:
mode:
authorSupriya Karanth <iskaranth@gmail.com>2015-03-12 13:26:18 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-16 16:17:31 +0100
commit5900adaee8cacb6a188ca9cd888a791585f71c4d (patch)
treea8dd4926e939396d5c547f92bd6cb2f0be2dd4ee /drivers/staging/i2o/iop.c
parent2049f1ea88fa07e5912c67c4c623bb342b4b02af (diff)
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/iop.c')
-rw-r--r--drivers/staging/i2o/iop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/i2o/iop.c b/drivers/staging/i2o/iop.c
index 52334fc8b547..6cae63c29e8d 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];