diff options
author | Roberta Dobrescu <roberta.dobrescu@gmail.com> | 2014-12-16 04:11:45 -0500 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-12-26 04:36:17 -0500 |
commit | d9d0ac96554c21e40fd56982bc7f8f4bc557f16a (patch) | |
tree | 5e2c19db37582755d3481061b04e094169b0f39f /drivers/iio/frequency/adf4350.c | |
parent | ebd163660675534dd5f27c8d3fa426b8253a98f4 (diff) |
iio: frequency: Remove 'out of memory' message
This patch fixes the following checkpatch.pl warning:
WARNING: Possible unnecessary 'out of memory' message
Signed-off-by: Roberta Dobrescu <roberta.dobrescu@gmail.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Reviewed-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/frequency/adf4350.c')
-rw-r--r-- | drivers/iio/frequency/adf4350.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/iio/frequency/adf4350.c b/drivers/iio/frequency/adf4350.c index 63a25d9e1204..2b301eba1d76 100644 --- a/drivers/iio/frequency/adf4350.c +++ b/drivers/iio/frequency/adf4350.c | |||
@@ -387,10 +387,8 @@ static struct adf4350_platform_data *adf4350_parse_dt(struct device *dev) | |||
387 | int ret; | 387 | int ret; |
388 | 388 | ||
389 | pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); | 389 | pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); |
390 | if (!pdata) { | 390 | if (!pdata) |
391 | dev_err(dev, "could not allocate memory for platform data\n"); | ||
392 | return NULL; | 391 | return NULL; |
393 | } | ||
394 | 392 | ||
395 | strncpy(&pdata->name[0], np->name, SPI_NAME_SIZE - 1); | 393 | strncpy(&pdata->name[0], np->name, SPI_NAME_SIZE - 1); |
396 | 394 | ||