diff options
-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 | ||