drm/cmdline-parser: Use assert when needed
authorMichał Winiarski <michal.winiarski@intel.com>
Wed, 17 Aug 2022 21:12:36 +0000 (23:12 +0200)
committerMaíra Canal <mairacanal@riseup.net>
Thu, 1 Sep 2022 11:45:24 +0000 (08:45 -0300)
commit169a32b76842c10fbe532cde6cc25e89bbf54341
treec3232cf9dfbf2aead6fd3040fb1f4b8a9468db8c
parent0af02a0e52030ca0b5acc4da6d3ee3303077277c
drm/cmdline-parser: Use assert when needed

Expecting to observe a specific value, when the function responsible for
setting the value has failed will lead to extra noise in test output.
Use assert when the situation calls for it.
Also - very small tidying up around the changed areas (whitespace).

v2: Leave out the locals (drm_connector is huge) (lkp)

Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Reviewed-by: Maíra Canal <mairacanal@riseup.net>
Signed-off-by: Maíra Canal <mairacanal@riseup.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20220817211236.252091-2-michal.winiarski@intel.com
drivers/gpu/drm/tests/drm_cmdline_parser_test.c