drm/xe/pf: Update success code of pf_validate_vf_config()
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 19 Sep 2024 17:15:25 +0000 (19:15 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Mon, 7 Oct 2024 10:59:46 +0000 (12:59 +0200)
commit99ce45cc25ebfb81328fe520ed5773c2e4929a8d
treea0dc7cf8ddeee5119eae20445db1f0ac58867b97
parent43971e30fd8ae24d8c4b6ce1203c1773bde781a4
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
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c