From: Nitin Gupta Date: Thu, 28 Jan 2010 15:43:40 +0000 (+0530) Subject: Staging: ramzswap: Return proper error code on device create failure X-Git-Tag: v2.6.34-rc1~10^2~1^2~124 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de1a21a0f1f614dac0d8cacc13f41e32a15bba98;p=pandora-kernel.git Staging: ramzswap: Return proper error code on device create failure Currently, we return 0 if create_device() fails and 1 otherwise. Now, proper error code is returned from create_device() and the same is propagated as module error code from ramzswap_init(). Also added some cleanups for ramzswap_init(), improving function structure. Signed-off-by: Nitin Gupta Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed