From: Jean Delvare Date: Wed, 28 May 2014 12:02:24 +0000 (+0200) Subject: crypto/nx/nx-842: dev_set_drvdata can no longer fail X-Git-Tag: firefly_0821_release~176^2~3465^2~40^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=cda43576afa641d83ae268cb9795ae2a549d53d9;p=firefly-linux-kernel-4.4.55.git 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 Cc: Robert Jennings Cc: Marcelo Henrique Cerri Cc: Fionnuala Gunter Reported-by: Stephen Rothwell Signed-off-by: Greg Kroah-Hartman --- 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, } 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)) {