From: Amitoj Kaur Chawla Date: Thu, 15 Oct 2015 08:20:56 +0000 (+0530) Subject: staging: rdma: ipath: ipath_eeprom: Remove useless intialisation X-Git-Tag: firefly_0821_release~176^2~802^2~540 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=065779434e59efa6252b3ed27df77f2151d47c54;p=firefly-linux-kernel-4.4.55.git staging: rdma: ipath: ipath_eeprom: Remove useless intialisation Remove intialisation of a variable that is immediately reassigned. The semantic patch used to find this is: // @@ type T; identifier x; constant C; expression e; @@ T x - = C ; x = e; // Signed-off-by: Amitoj Kaur Chawla Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rdma/ipath/ipath_eeprom.c b/drivers/staging/rdma/ipath/ipath_eeprom.c index fc7181985e8e..ef84107c7ce0 100644 --- a/drivers/staging/rdma/ipath/ipath_eeprom.c +++ b/drivers/staging/rdma/ipath/ipath_eeprom.c @@ -411,7 +411,7 @@ bail: */ static int i2c_probe(struct ipath_devdata *dd, int devaddr) { - int ret = 0; + int ret; ret = eeprom_reset(dd); if (ret) {