diff options
author | Jean Delvare <jdelvare@suse.de> | 2014-05-28 08:02:24 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-28 16:39:51 -0400 |
commit | cda43576afa641d83ae268cb9795ae2a549d53d9 (patch) | |
tree | de71b7aafe475b7e51847962b8308dbfd9ffc98c /drivers/crypto | |
parent | 26fc9cd200ec839e0b3095e05ae018f27314e7aa (diff) |
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 <jdelvare@suse.de>
Cc: Robert Jennings <rcj@linux.vnet.ibm.com>
Cc: Marcelo Henrique Cerri <mhcerri@linux.vnet.ibm.com>
Cc: Fionnuala Gunter <fin@linux.vnet.ibm.com>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/nx/nx-842.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/crypto/nx/nx-842.c b/drivers/crypto/nx/nx-842.c index 1e5481d88a26..5ce8b5765121 100644 --- a/drivers/crypto/nx/nx-842.c +++ b/drivers/crypto/nx/nx-842.c | |||
@@ -1197,12 +1197,7 @@ static int __init nx842_probe(struct vio_dev *viodev, | |||
1197 | } | 1197 | } |
1198 | 1198 | ||
1199 | rcu_read_lock(); | 1199 | rcu_read_lock(); |
1200 | if (dev_set_drvdata(&viodev->dev, rcu_dereference(devdata))) { | 1200 | dev_set_drvdata(&viodev->dev, rcu_dereference(devdata)); |
1201 | rcu_read_unlock(); | ||
1202 | dev_err(&viodev->dev, "failed to set driver data for device\n"); | ||
1203 | ret = -1; | ||
1204 | goto error; | ||
1205 | } | ||
1206 | rcu_read_unlock(); | 1201 | rcu_read_unlock(); |
1207 | 1202 | ||
1208 | if (sysfs_create_group(&viodev->dev.kobj, &nx842_attribute_group)) { | 1203 | if (sysfs_create_group(&viodev->dev.kobj, &nx842_attribute_group)) { |