amdkfd: Trim unnescessary intermediate err var in kfd_chardev.c
Found-By: Coccinelle Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
This commit is contained in:
Родитель
371d5b653f
Коммит
eb026024c2
|
@ -131,12 +131,11 @@ static int kfd_ioctl_get_version(struct file *filep, struct kfd_process *p,
|
||||||
void *data)
|
void *data)
|
||||||
{
|
{
|
||||||
struct kfd_ioctl_get_version_args *args = data;
|
struct kfd_ioctl_get_version_args *args = data;
|
||||||
int err = 0;
|
|
||||||
|
|
||||||
args->major_version = KFD_IOCTL_MAJOR_VERSION;
|
args->major_version = KFD_IOCTL_MAJOR_VERSION;
|
||||||
args->minor_version = KFD_IOCTL_MINOR_VERSION;
|
args->minor_version = KFD_IOCTL_MINOR_VERSION;
|
||||||
|
|
||||||
return err;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int set_queue_properties_from_user(struct queue_properties *q_properties,
|
static int set_queue_properties_from_user(struct queue_properties *q_properties,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче