mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-12-02 00:40:59 -05:00
crypto/nx/nx-842: dev_set_drvdata can no longer fail
Don't check if dev_set_drvdata() failed, it can't, and it returns void now. Signed-off-by: Jean Delvare <[email protected]> Cc: Robert Jennings <[email protected]> Cc: Marcelo Henrique Cerri <[email protected]> Cc: Fionnuala Gunter <[email protected]> Reported-by: Stephen Rothwell <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
26fc9cd200
commit
cda43576af
1 changed files with 1 additions and 6 deletions
|
|
@ -1197,12 +1197,7 @@ static int __init nx842_probe(struct vio_dev *viodev,
|
|||
}
|
||||
|
||||
rcu_read_lock();
|
||||
if (dev_set_drvdata(&viodev->dev, rcu_dereference(devdata))) {
|
||||
rcu_read_unlock();
|
||||
dev_err(&viodev->dev, "failed to set driver data for device\n");
|
||||
ret = -1;
|
||||
goto error;
|
||||
}
|
||||
dev_set_drvdata(&viodev->dev, rcu_dereference(devdata));
|
||||
rcu_read_unlock();
|
||||
|
||||
if (sysfs_create_group(&viodev->dev.kobj, &nx842_attribute_group)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue