Skip to content

Commit 46e221c

Browse files
Sachin Kamatjic23
authored andcommitted
staging: iio: tsl2x7x_core: Fix sparse warning
Silences the following warning: drivers/staging/iio/light/tsl2x7x_core.c:553:70: warning: Using plain integer as NULL pointer Signed-off-by: Sachin Kamat <[email protected]> Cc: J. August Brenner <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 8529e66 commit 46e221c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/staging/iio/light/tsl2x7x_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ static int tsl2x7x_get_prox(struct iio_dev *indio_dev)
550550
static void tsl2x7x_defaults(struct tsl2X7X_chip *chip)
551551
{
552552
/* If Operational settings defined elsewhere.. */
553-
if (chip->pdata && chip->pdata->platform_default_settings != 0)
553+
if (chip->pdata && chip->pdata->platform_default_settings)
554554
memcpy(&(chip->tsl2x7x_settings),
555555
chip->pdata->platform_default_settings,
556556
sizeof(tsl2x7x_default_settings));

0 commit comments

Comments
 (0)