]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/edid: Swap some operands in for_each_displayid_db()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 13 Mar 2020 16:20:47 +0000 (18:20 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 18 Mar 2020 15:52:36 +0000 (17:52 +0200)
A+B on the previous line, B+A on the next line. Brain hurts.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200313162054.16009-3-ville.syrjala@linux.intel.com
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
include/drm/drm_displayid.h

index 9d3b745c3107763a84269eb5a48484a698bb4bdd..27bdd273fc4e7d340d72fea2cedf288f9437f054 100644 (file)
@@ -97,7 +97,7 @@ struct displayid_detailed_timing_block {
             (idx) + sizeof(struct displayid_block) <= (length) && \
             (idx) + sizeof(struct displayid_block) + (block)->num_bytes <= (length) && \
             (block)->num_bytes > 0; \
-            (idx) += (block)->num_bytes + sizeof(struct displayid_block), \
+            (idx) += sizeof(struct displayid_block) + (block)->num_bytes, \
             (block) = (struct displayid_block *)&(displayid)[idx])
 
 #endif