mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
drm/xe/pf: Update success code of pf_validate_vf_config()
This function may return negative error codes on invalid or incomplete VF configuration, but unlike other int functions, it was returning 1 instead of 0 on success, which might be little inconvinient if we would like to use it directly in other functions. Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Reviewed-by: Michał Winiarski <michal.winiarski@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240919171528.1451-3-michal.wajdeczko@intel.com
This commit is contained in:
parent
43971e30fd
commit
99ce45cc25
|
|
@ -2042,7 +2042,7 @@ static int pf_validate_vf_config(struct xe_gt *gt, unsigned int vfid)
|
|||
valid_all = valid_all && valid_lmem;
|
||||
}
|
||||
|
||||
return valid_all ? 1 : valid_any ? -ENOKEY : -ENODATA;
|
||||
return valid_all ? 0 : valid_any ? -ENOKEY : -ENODATA;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user