From: Uwe Kleine-König Date: Wed, 20 Apr 2011 07:44:46 +0000 (+0200) Subject: driver core: let dev_set_drvdata return int instead of void as it can fail X-Git-Tag: v3.0-rc1~390^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8705082404823a5bb3e02a32ba0764399b9e6f2;p=pandora-kernel.git driver core: let dev_set_drvdata return int instead of void as it can fail Before commit b402843 (Driver core: move dev_get/set_drvdata to drivers/base/dd.c) calling dev_set_drvdata with dev=NULL was an unchecked error. After some discussion about what to return in this case removing the check (and so producing a null pointer exception) seems fine. Signed-off-by: Uwe Kleine-König Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed