drm/dp/mst: Reduce nested ifs
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 25 Sep 2019 14:14:40 +0000 (17:14 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 30 Sep 2019 17:54:20 +0000 (20:54 +0300)
commitdb0cc143b69e48e051610ae716d305270ea41ff6
treeee3e1c9b460cc3d0ff59acd7cf87147c7a3437d2
parent1ab2a99edb374732f429282e3e8f89df1b0ceed2
drm/dp/mst: Reduce nested ifs

Replace the nested ifs with a single if and a logical AND.

Cc: Lyude Paul <lyude@redhat.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190925141442.23236-1-ville.syrjala@linux.intel.com
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
drivers/gpu/drm/drm_dp_mst_topology.c