Skip to content

Commit

Permalink
amdkfd: Trim unnescessary intermediate err var in kfd_chardev.c
Browse files Browse the repository at this point in the history
Found-By: Coccinelle
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
  • Loading branch information
Edward O'Callaghan authored and Oded Gabbay committed Apr 30, 2016
1 parent 371d5b6 commit eb02602
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit eb02602

Please sign in to comment.