diff options
Diffstat (limited to 'drivers/char/hw_random/timeriomem-rng.c')
-rw-r--r-- | drivers/char/hw_random/timeriomem-rng.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/char/hw_random/timeriomem-rng.c b/drivers/char/hw_random/timeriomem-rng.c index 439ff8b28c43..b6ab9ac3f34d 100644 --- a/drivers/char/hw_random/timeriomem-rng.c +++ b/drivers/char/hw_random/timeriomem-rng.c | |||
@@ -120,10 +120,8 @@ static int timeriomem_rng_probe(struct platform_device *pdev) | |||
120 | /* Allocate memory for the device structure (and zero it) */ | 120 | /* Allocate memory for the device structure (and zero it) */ |
121 | priv = devm_kzalloc(&pdev->dev, | 121 | priv = devm_kzalloc(&pdev->dev, |
122 | sizeof(struct timeriomem_rng_private_data), GFP_KERNEL); | 122 | sizeof(struct timeriomem_rng_private_data), GFP_KERNEL); |
123 | if (!priv) { | 123 | if (!priv) |
124 | dev_err(&pdev->dev, "failed to allocate device structure.\n"); | ||
125 | return -ENOMEM; | 124 | return -ENOMEM; |
126 | } | ||
127 | 125 | ||
128 | platform_set_drvdata(pdev, priv); | 126 | platform_set_drvdata(pdev, priv); |
129 | 127 | ||