diff options
| author | Patrick Tjin <pattjin@google.com> | 2016-02-16 09:15:10 -0800 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-05-20 21:10:00 +0200 |
| commit | 93ab08cfd01edcac534f95ddbc480306e47d6ae1 (patch) | |
| tree | 00f5d74d98b64615497f84a4499dff094e52f2a1 /fs | |
| parent | d83b17b896f333f4a2d50952d10a106db014b95d (diff) | |
fs/pstore: fix compilation warning
fs/pstore/ram.c: In function 'ramoops_probe':
fs/pstore/ram.c:526:6: error: void value not ignored as it ought to be
Change-Id: I8ad52a8955486df59bb8f7d09757fcb8b1a4e036
Signed-off-by: Patrick Tjin <pattjin@google.com>
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/pstore/ram.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c index 36fb0d107..f642ae61c 100644 --- a/fs/pstore/ram.c +++ b/fs/pstore/ram.c @@ -500,9 +500,7 @@ static int ramoops_probe(struct platform_device *pdev) return -ENOMEM; } - err = dev_set_drvdata(dev, pdata); - if (err) - goto fail_out; + dev_set_drvdata(dev, pdata); if (pdev->dev.of_node) ramoops_of_init(pdev); |
