Skip to content

Commit

Permalink
spi: tle62x0: remove unnecessary OOM messages
Browse files Browse the repository at this point in the history
The site-specific OOM messages are unnecessary, because they
duplicate the MM subsystem generic OOM message.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Jingoo Han authored and Mark Brown committed Apr 29, 2014
1 parent 1e8231b commit 9f48e54
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/spi/spi-tle62x0.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,8 @@ static int tle62x0_probe(struct spi_device *spi)
}

st = kzalloc(sizeof(struct tle62x0_state), GFP_KERNEL);
if (st == NULL) {
dev_err(&spi->dev, "no memory for device state\n");
if (st == NULL)
return -ENOMEM;
}

st->us = spi;
st->nr_gpio = pdata->gpio_count;
Expand Down

0 comments on commit 9f48e54

Please sign in to comment.