X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Ffat%2Ffile.c;h=3b48219aefbef5e53cf157b0494e2e256964d4c0;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=ba1707a5ce3e973db3147818a24f7a0aef15cc84;hpb=a2c21200f1c81b08cb55e417b68150bba439b646;p=linux-2.6.git diff --git a/fs/fat/file.c b/fs/fat/file.c index ba1707a5c..3b48219ae 100644 --- a/fs/fat/file.c +++ b/fs/fat/file.c @@ -90,12 +90,6 @@ void fat_truncate(struct inode *inode) const unsigned int cluster_size = sbi->cluster_size; int nr_clusters; - /* Why no return value? Surely the disk could fail... */ - if (IS_RDONLY (inode)) - return /* -EPERM */; - if (IS_IMMUTABLE(inode)) - return /* -EPERM */; - /* * This protects against truncating a file bigger than it was then * trying to write into the hole.