]> git.baikalelectronics.ru Git - kernel.git/commit
drm/agpsupport: Remove assignment in if condition
authorMeghana Madhyastha <meghana.madhyastha@gmail.com>
Thu, 14 Sep 2017 08:10:49 +0000 (13:40 +0530)
committerSean Paul <seanpaul@chromium.org>
Wed, 20 Sep 2017 16:53:57 +0000 (09:53 -0700)
commit24137a03a2a5fd0fab2b917bb59208994fccbba7
treedf5815def7058269d1cece24ad8627e0840bc3db
parent272069a4947fbfde031b8344fdabd2abbc8a1429
drm/agpsupport: Remove assignment in if condition

Move the assignment so that it happens before the if condition.
Merged multiple similar conditionals to a single conditional statement.
This results in syntax which is easier to read.

Found by checkpath.pl

Signed-off-by: Meghana Madhyastha <meghana.madhyastha@gmail.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/d30cb59d92c8a98d0665ef6ae2a56b364dc61098.1505376068.git.meghana.madhyastha@gmail.com
drivers/gpu/drm/drm_agpsupport.c