]> err.no Git - linux-2.6/blobdiff - fs/hostfs/hostfs_kern.c
Merge master.kernel.org:/home/rmk/linux-2.6-drvmodel
[linux-2.6] / fs / hostfs / hostfs_kern.c
index dd7113106269992822e97e4bbf07ad2bc5ab5eca..4684eb7d48c6ff15338083b4797558094b61be30 100644 (file)
@@ -8,7 +8,6 @@
 
 #include <linux/stddef.h>
 #include <linux/fs.h>
-#include <linux/version.h>
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/slab.h>
@@ -294,8 +293,7 @@ static void hostfs_delete_inode(struct inode *inode)
 
 static void hostfs_destroy_inode(struct inode *inode)
 {
-       if(HOSTFS_I(inode)->host_filename)
-               kfree(HOSTFS_I(inode)->host_filename);
+       kfree(HOSTFS_I(inode)->host_filename);
 
        /*XXX: This should not happen, probably. The check is here for
         * additional safety.*/