]> git.karo-electronics.de Git - linux-beck.git/commitdiff
amdkfd: Trim unnescessary intermediate err var in kfd_chardev.c
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>
Sat, 30 Apr 2016 14:06:29 +0000 (00:06 +1000)
committerOded Gabbay <oded.gabbay@gmail.com>
Sat, 30 Apr 2016 14:06:29 +0000 (00:06 +1000)
Found-By: Coccinelle
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c

index 2925f5698e7eeaa7c4edc3eac85ad0b45b003c30..ee3e04e10dae3380c09c715673dfb79773746e73 100644 (file)
@@ -131,12 +131,11 @@ static int kfd_ioctl_get_version(struct file *filep, struct kfd_process *p,
                                        void *data)
 {
        struct kfd_ioctl_get_version_args *args = data;
-       int err = 0;
 
        args->major_version = KFD_IOCTL_MAJOR_VERSION;
        args->minor_version = KFD_IOCTL_MINOR_VERSION;
 
-       return err;
+       return 0;
 }
 
 static int set_queue_properties_from_user(struct queue_properties *q_properties,