Re: [PATCH] rio: warn_unused_result warnings fix
From: David Miller <davem@davemloft.net>
Date: 2009-04-28 11:38:41
Also in:
linuxppc-dev, lkml
From: David Miller <davem@davemloft.net>
Date: 2009-04-28 11:38:41
Also in:
linuxppc-dev, lkml
From: Li Yang <redacted> Date: Tue, 28 Apr 2009 19:08:13 +0800
IMHO, when device_add() fails the system is quite broken. So the value is very limited for it to fail cleanly, which need some effort to implement. I can add it if you insist.
I disagree. For the cases where device_add() fails (duplicate name, for example) the device layer already is emitting warnings. You're just adding more log messages for the user to sift through, and likely not adding any new information.