drm/auth: make drm_{set,drop}master_ioctl symmetrical
authorEmil Velikov <emil.l.velikov@gmail.com>
Sat, 30 May 2020 12:46:40 +0000 (13:46 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 15 Jun 2020 13:49:50 +0000 (14:49 +0100)
commit264ddd077c72092178153fc32d510dcecff32eeb
tree239802070d84bc7d70c8cc15f9fff2524831bfc0
parent907f53200f982cd377e75abbc1b18ed624d7ae66
drm/auth: make drm_{set,drop}master_ioctl symmetrical

Currently the ret handling is all over the place - with two redundant
assignments and another one addressed earlier.

Use the exact same flow in both functions.

v2: straighten the code flow, instead of just removing the assignments

Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200530124640.4176323-2-emil.l.velikov@gmail.com
drivers/gpu/drm/drm_auth.c