* [PATCH] crypto/nx/nx-842: dev_set_drvdata can no longer fail
@ 2014-05-28 12:02 Jean Delvare
2014-05-28 20:39 ` Greg Kroah-Hartman
0 siblings, 1 reply; 3+ messages in thread
From: Jean Delvare @ 2014-05-28 12:02 UTC (permalink / raw)
To: Greg Kroah-Hartman
Cc: linux-crypto, Robert Jennings, Marcelo Henrique Cerri,
Fionnuala Gunter, Stephen Rothwell
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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>
---
I believe this should go through Greg's driver-core tree, as this is
where the rest of the dev_set_drvdata() changes are.
drivers/crypto/nx/nx-842.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
--- 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
}
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)) {
--
Jean Delvare
SUSE L3 Support
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] crypto/nx/nx-842: dev_set_drvdata can no longer fail
2014-05-28 12:02 [PATCH] crypto/nx/nx-842: dev_set_drvdata can no longer fail Jean Delvare
@ 2014-05-28 20:39 ` Greg Kroah-Hartman
2014-05-29 7:03 ` Jean Delvare
0 siblings, 1 reply; 3+ messages in thread
From: Greg Kroah-Hartman @ 2014-05-28 20:39 UTC (permalink / raw)
To: Jean Delvare
Cc: linux-crypto, Robert Jennings, Marcelo Henrique Cerri,
Fionnuala Gunter, Stephen Rothwell
On Wed, May 28, 2014 at 02:02:24PM +0200, Jean Delvare wrote:
> 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> 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>
> ---
> I believe this should go through Greg's driver-core tree, as this is
> where the rest of the dev_set_drvdata() changes are.
You forgot a reported-by: field :(
I'll add it but be more careful in the future...
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] crypto/nx/nx-842: dev_set_drvdata can no longer fail
2014-05-28 20:39 ` Greg Kroah-Hartman
@ 2014-05-29 7:03 ` Jean Delvare
0 siblings, 0 replies; 3+ messages in thread
From: Jean Delvare @ 2014-05-29 7:03 UTC (permalink / raw)
To: Greg Kroah-Hartman
Cc: linux-crypto, Robert Jennings, Marcelo Henrique Cerri,
Fionnuala Gunter, Stephen Rothwell
On Wed, 28 May 2014 13:39:23 -0700, Greg Kroah-Hartman wrote:
> On Wed, May 28, 2014 at 02:02:24PM +0200, Jean Delvare wrote:
> > 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> > 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>
> > ---
> > I believe this should go through Greg's driver-core tree, as this is
> > where the rest of the dev_set_drvdata() changes are.
>
> You forgot a reported-by: field :(
>
> I'll add it but be more careful in the future...
Sorry, I'm not yet used to reported-by :-( I'll try to remember it next
time.
--
Jean Delvare
SUSE L3 Support
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-05-29 7:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-28 12:02 [PATCH] crypto/nx/nx-842: dev_set_drvdata can no longer fail Jean Delvare
2014-05-28 20:39 ` Greg Kroah-Hartman
2014-05-29 7:03 ` Jean Delvare
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.