From: Dan Carpenter Date: Thu, 13 Jan 2011 20:00:00 +0000 (+0000) Subject: dm log: use PTR_ERR value instead of ENOMEM X-Git-Tag: v2.6.38-rc1~221^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbc883f1570d992ba926a8c9e22140ba473c6cc1;p=pandora-kernel.git dm log: use PTR_ERR value instead of ENOMEM It's nicer to return the PTR_ERR() value instead of just returning -ENOMEM. In the current code the PTR_ERR() value is always equal to -ENOMEM so this doesn't actually affect anything, but still... In addition, dm_dirty_log_create() doesn't check for a specific -ENOMEM return. So this change is safe relative to potential for a non -ENOMEM return in the future. Signed-off-by: Dan Carpenter Acked-by: Jonathan Brassow Signed-off-by: Mike Snitzer Signed-off-by: Alasdair G Kergon --- Reading git-diff-tree failed