These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / drivers / misc / hwlat_detector.c
index 2429c43..52f5ad5 100644 (file)
@@ -616,7 +616,7 @@ static ssize_t  debug_enable_fwrite(struct file *filp,
 
        buf[sizeof(buf)-1] = '\0';                      /* just in case */
        err = kstrtoul(buf, 10, &val);
-       if (0 != err)
+       if (err)
                return -EINVAL;
 
        if (val) {
@@ -921,7 +921,7 @@ static ssize_t  debug_width_fwrite(struct file *filp,
 
        buf[U64STR_SIZE-1] = '\0';                      /* just in case */
        err = kstrtoull(buf, 10, &val);
-       if (0 != err)
+       if (err)
                return -EINVAL;
 
        mutex_lock(&data.lock);
@@ -1005,7 +1005,7 @@ static ssize_t  debug_window_fwrite(struct file *filp,
 
        buf[U64STR_SIZE-1] = '\0';                      /* just in case */
        err = kstrtoull(buf, 10, &val);
-       if (0 != err)
+       if (err)
                return -EINVAL;
 
        mutex_lock(&data.lock);
@@ -1198,11 +1198,11 @@ static int detector_init(void)
        pr_info(BANNER "version %s\n", VERSION);
 
        ret = init_stats();
-       if (0 != ret)
+       if (ret)
                goto out;
 
        ret = init_debugfs();
-       if (0 != ret)
+       if (ret)
                goto err_stats;
 
        if (enabled)