]> git.baikalelectronics.ru Git - kernel.git/commit
dm log: use PTR_ERR value instead of ENOMEM
authorDan Carpenter <error27@gmail.com>
Thu, 13 Jan 2011 20:00:00 +0000 (20:00 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 13 Jan 2011 20:00:00 +0000 (20:00 +0000)
commite4b0d78b8b436eef96ea0d566c3715162318deeb
tree1a6bfde475cbbe2a978a13b9e2f2a8fec959d7fe
parent5159516b44fc961c44427cfaff902475b0d1459e
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 <error27@gmail.com>
Acked-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-log.c