X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=fs%2Fquota.c;h=84f28dd721163eb5ef09166bb3d96569c9724b6a;hb=103926c689650396901002c3a8c38970fff70391;hp=99b24b52bfc83cbd8f851044dbe2ae27f8e1fc4b;hpb=b981d8b3f5e008ff10d993be633ad00564fc22cd;p=~andy%2Flinux diff --git a/fs/quota.c b/fs/quota.c index 99b24b52bfc..84f28dd7211 100644 --- a/fs/quota.c +++ b/fs/quota.c @@ -341,11 +341,11 @@ static inline struct super_block *quotactl_block(const char __user *special) char *tmp = getname(special); if (IS_ERR(tmp)) - return ERR_PTR(PTR_ERR(tmp)); + return ERR_CAST(tmp); bdev = lookup_bdev(tmp); putname(tmp); if (IS_ERR(bdev)) - return ERR_PTR(PTR_ERR(bdev)); + return ERR_CAST(bdev); sb = get_super(bdev); bdput(bdev); if (!sb)