IB/qib: Fix sizeof checkpatch warnings
[deliverable/linux.git] / drivers / infiniband / hw / qib / qib_file_ops.c
index b15e34eeef685d510c781d25d08433e4b3e7c717..b16ceb241db3e329a89e7ea5ff0b121b11d10669 100644 (file)
@@ -437,7 +437,7 @@ cleanup:
                        goto cleanup;
                }
                if (copy_to_user((void __user *) (unsigned long) ti->tidmap,
-                                tidmap, sizeof tidmap)) {
+                                tidmap, sizeof(tidmap))) {
                        ret = -EFAULT;
                        goto cleanup;
                }
@@ -484,7 +484,7 @@ static int qib_tid_free(struct qib_ctxtdata *rcd, unsigned subctxt,
        }
 
        if (copy_from_user(tidmap, (void __user *)(unsigned long)ti->tidmap,
-                          sizeof tidmap)) {
+                          sizeof(tidmap))) {
                ret = -EFAULT;
                goto done;
        }
This page took 0.026027 seconds and 5 git commands to generate.