Whamcloud - gitweb
Be more specific so that other lustre* cruft is not picked up.
[fs/lustre-release.git] / lustre / smfs / ioctl.c
index 82413c3..4faae61 100644 (file)
@@ -54,6 +54,7 @@ static struct super_block *smfs_get_sb_by_path(char *path, int len)
         ENTRY;
 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
         if (path_init(path, LOOKUP_FOLLOW, &nd)) {
+                int error = 0;
                 error = path_walk(path, &nd);
                 if (error) {
                         path_release(&nd);
@@ -167,10 +168,11 @@ static struct file_operations smfscontrol_fops = {
         .open    = smfs_psdev_open,       /* open */
         .release = smfs_psdev_release,    /* release */
 };
+
 static struct miscdevice smfscontrol_dev = {
-        minor:        SMFS_MINOR,
-        name:        "smfscontrol",
-        fops:        &smfscontrol_fops
+        .minor         = SMFS_MINOR,
+        .name          = "smfscontrol",
+        .fops          = &smfscontrol_fops
 };
 
 int init_smfs_psdev(void)