Commit 1a32c5ad authored by Aybuke Ozdemir's avatar Aybuke Ozdemir Committed by Greg Kroah-Hartman
Browse files

staging: iio: light: Checkpatch fixes tsl2x7x_core.c



This patch fixes these errors and warning messages found by
checkpatch.pl:
ERROR: return is not a function, parentheses are not required.
WARNING: space prohibited before semicolon.

Signed-off-by: default avatarAybuke Ozdemir <aybuke.147@gmail.com>
Acked-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4b31467d
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1507,16 +1507,16 @@ static int tsl2x7x_device_id(unsigned char *id, int target)
	case tsl2571:
	case tsl2671:
	case tsl2771:
		return ((*id & 0xf0) == TRITON_ID);
		return (*id & 0xf0) == TRITON_ID;
	case tmd2671:
	case tmd2771:
		return ((*id & 0xf0) == HALIBUT_ID);
		return (*id & 0xf0) == HALIBUT_ID;
	case tsl2572:
	case tsl2672:
	case tmd2672:
	case tsl2772:
	case tmd2772:
		return ((*id & 0xf0) == SWORDFISH_ID);
		return (*id & 0xf0) == SWORDFISH_ID;
	}

	return -EINVAL;