From: Wang Chen Date: Thu, 24 Jul 2008 04:30:01 +0000 (-0700) Subject: I2O: handle sysfs_create_link() failures X-Git-Tag: v2.6.27-rc1~651 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0293902a4d66fab27d0ddcc0766e05dae68f004e;p=pandora-kernel.git I2O: handle sysfs_create_link() failures Compile warning: ignoring return value of `sysfs_create_link', declared with attribute warn_unused_result. If sysfs_create_link failed, take care of the return value and do some error handle after the failure. Since sysfs_remove_link() will check whether a link exists, when removing the link in error path, we don't need to care whether a link was created. Signed-off-by: Wang Chen Cc: Markus Lidel Cc: Jens Axboe Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed