Skip to contentSkip to conversation

UML - Remove unneeded if from hostfs

PATCH In review Jeff Dike 1 participant 1 message Aug 18, 2007 User-mode Linux (UML)

lore
Share & tools
lore

Jeff Dike

author
#0 lore raw

PATCH 5/6 UML - Remove unneeded if from hostfs

Get rid of an empty if statement which might look like a bug to a casual reader.

--

 fs/hostfs/hostfs_user.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/hostfs/hostfs_user.c +1 -1
Index: linux-2.6.22/fs/hostfs/hostfs_user.c
===================================================================
@@ -283,7 +283,7 @@ int set_attr(const char *file, struct ho
 		}
 	}
 
-	if(attrs->ia_valid & HOSTFS_ATTR_CTIME) ;
+	/* Note: ctime is not handled */
 	if(attrs->ia_valid & (HOSTFS_ATTR_ATIME | HOSTFS_ATTR_MTIME)){
 		err = stat_file(file, NULL, NULL, NULL, NULL, NULL, NULL,
 				&attrs->ia_atime, &attrs->ia_mtime, NULL,

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel