]> err.no Git - linux-2.6/blobdiff - mm/filemap.c
[PATCH] ipmi: timer shutdown cleanup
[linux-2.6] / mm / filemap.c
index 4a2fee2cb62bad714491e1e910406ecd66dc2557..a3598b542a318609362248886027b5aabe48ba64 100644 (file)
@@ -1827,12 +1827,6 @@ inline int generic_write_checks(struct file *file, loff_t *pos, size_t *count, i
         if (unlikely(*pos < 0))
                 return -EINVAL;
 
-        if (unlikely(file->f_error)) {
-                int err = file->f_error;
-                file->f_error = 0;
-                return err;
-        }
-
        if (!isblk) {
                /* FIXME: this is for backwards compatibility with 2.4 */
                if (file->f_flags & O_APPEND)