habanalabs: add missing space after casting
authorOmer Shpigelman <oshpigelman@habana.ai>
Thu, 29 Apr 2021 19:29:29 +0000 (22:29 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Fri, 18 Jun 2021 12:23:39 +0000 (15:23 +0300)
Change casting code according to kernel coding style.

Signed-off-by: Omer Shpigelman <oshpigelman@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/habanalabs_ioctl.c

index 33841c2..6604d30 100644 (file)
@@ -95,7 +95,7 @@ static int hw_ip_info(struct hl_device *hdev, struct hl_info_args *args)
        hw_ip.first_available_interrupt_id =
                        prop->first_available_user_msix_interrupt;
        return copy_to_user(out, &hw_ip,
-               min((size_t)size, sizeof(hw_ip))) ? -EFAULT : 0;
+               min((size_t) size, sizeof(hw_ip))) ? -EFAULT : 0;
 }
 
 static int hw_events_info(struct hl_device *hdev, bool aggregate,