diff options
author | Dan Carpenter <error27@gmail.com> | 2011-01-13 23:00:00 +0300 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2011-01-13 23:00:00 +0300 |
commit | dbc883f1570d992ba926a8c9e22140ba473c6cc1 (patch) | |
tree | 1a6bfde475cbbe2a978a13b9e2f2a8fec959d7fe /drivers/md/dm.c | |
parent | b83b2f295aec418c7501c05df4dfd168a79d165a (diff) | |
download | linux-dbc883f1570d992ba926a8c9e22140ba473c6cc1.tar.xz |
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>
Diffstat (limited to 'drivers/md/dm.c')
0 files changed, 0 insertions, 0 deletions