From: Cristina Opriceana Date: Tue, 31 Mar 2015 10:03:38 +0000 (+0300) Subject: Staging: iio: impedance-analyzer: Remove explicit NULL comparison X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=16d55be4cc694f76bff0cd99a8101e943e878d38;p=openwrt%2Fstaging%2Fblogic.git Staging: iio: impedance-analyzer: Remove explicit NULL comparison This patch removes explicit NULL comparison and replaces it with its shorter form. Detected with coccinelle. Signed-off-by: Cristina Opriceana Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/iio/impedance-analyzer/ad5933.c b/drivers/staging/iio/impedance-analyzer/ad5933.c index 79194399e040..c18109c55497 100644 --- a/drivers/staging/iio/impedance-analyzer/ad5933.c +++ b/drivers/staging/iio/impedance-analyzer/ad5933.c @@ -703,7 +703,7 @@ static int ad5933_probe(struct i2c_client *client, struct iio_dev *indio_dev; indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*st)); - if (indio_dev == NULL) + if (!indio_dev) return -ENOMEM; st = iio_priv(indio_dev);