[PATCH v3 1/7] drm/xe: Simplify function return using drmm_add_action_or_reset()

Lucas De Marchi lucas.demarchi at intel.com
Fri Apr 12 12:52:16 UTC 2024


On Fri, Apr 12, 2024 at 01:32:39PM +0530, Himal Prasad Ghimiray wrote:
>Instead of assigning the value of drmm_add_action_or_reset() to err and
>returning err in case of failure and 0 in case of success, simply return
>the result of drmm_add_action_or_reset().
>
>-v2:
>cleanup in xe_display too.
>
>Cc: Rodrigo Vivi <rodrigo.vivi at intel.com>
>Cc: Lucas De Marchi <lucas.demarchi at intel.com>
>Signed-off-by: Himal Prasad Ghimiray <himal.prasad.ghimiray at intel.com>


Reviewed-by: Lucas De Marchi <lucas.demarchi at intel.com>

Lucas De Marchi


More information about the Intel-xe mailing list