Commit 87c2de5f authored by Tian Tao's avatar Tian Tao Committed by Wolfram Sang
Browse files

i2c: iop3xx: Fix coding style issues



Fix 20 checkpatch errors.

Among these errors, 18 of them are incorrect space usage, such as:

  ERROR: space prohibited after that open parenthesis '('
  #128: FILE: drivers/i2c/busses/i2c-iop3xx.c:128:
  +               if ( !rc ) rc = -I2C_ERR_BERR

The remaining two errors are trailing statements should be on next line,
such as:

  ERROR: trailing statements should be on next line
  #128: FILE: drivers/i2c/busses/i2c-iop3xx.c:128:
  +               if ( !rc ) rc = -I2C_ERR_BERR;

No functional changes.

Signed-off-by: default avatarTian Tao <tiantao6@hisilicon.com>
Signed-off-by: default avatarZihao Tang <tangzihao1@hisilicon.com>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent 5e77a61f
Loading
Loading
Loading
Loading
+15 −13
Original line number Diff line number Diff line
@@ -125,10 +125,12 @@ iop3xx_i2c_error(u32 sr)
	int rc = 0;

	if ((sr & IOP3XX_ISR_BERRD)) {
		if ( !rc ) rc = -I2C_ERR_BERR;
		if (!rc)
			rc = -I2C_ERR_BERR;
	}
	if ((sr & IOP3XX_ISR_ALD)) {
		if ( !rc ) rc = -I2C_ERR_ALD;
		if (!rc)
			rc = -I2C_ERR_ALD;
	}
	return rc;
}