浏览代码

[PATCH] fs/attr.c: remove BUG()

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Alexey Dobriyan 19 年之前
父节点
当前提交
b3099b48da
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      fs/attr.c

+ 0 - 3
fs/attr.c

@@ -117,9 +117,6 @@ int notify_change(struct dentry * dentry, struct iattr * attr)
 	struct timespec now;
 	struct timespec now;
 	unsigned int ia_valid = attr->ia_valid;
 	unsigned int ia_valid = attr->ia_valid;
 
 
-	if (!inode)
-		BUG();
-
 	mode = inode->i_mode;
 	mode = inode->i_mode;
 	now = current_fs_time(inode->i_sb);
 	now = current_fs_time(inode->i_sb);