Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: sm750fb: move while to follow do close brace

Fixes checkpatch.pl error:
ERROR: while should follow close brace '}'

Signed-off-by: Juston Li <juston.h.li@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Juston Li and committed by
Greg Kroah-Hartman
cebafd8d 259fef35

+4 -8
+4 -8
drivers/staging/sm750fb/ddk750_display.c
··· 139 139 status = FIELD_GET(PEEK32(SYSTEM_CTRL), 140 140 SYSTEM_CTRL, 141 141 PANEL_VSYNC); 142 - } 143 - while (status == SYSTEM_CTRL_PANEL_VSYNC_ACTIVE); 142 + } while (status == SYSTEM_CTRL_PANEL_VSYNC_ACTIVE); 144 143 145 144 /* Wait for start of vsync. */ 146 145 do { 147 146 status = FIELD_GET(PEEK32(SYSTEM_CTRL), 148 147 SYSTEM_CTRL, 149 148 PANEL_VSYNC); 150 - } 151 - while (status == SYSTEM_CTRL_PANEL_VSYNC_INACTIVE); 149 + } while (status == SYSTEM_CTRL_PANEL_VSYNC_INACTIVE); 152 150 } 153 151 154 152 } else { ··· 166 168 status = FIELD_GET(PEEK32(SYSTEM_CTRL), 167 169 SYSTEM_CTRL, 168 170 CRT_VSYNC); 169 - } 170 - while (status == SYSTEM_CTRL_CRT_VSYNC_ACTIVE); 171 + } while (status == SYSTEM_CTRL_CRT_VSYNC_ACTIVE); 171 172 172 173 /* Wait for start of vsync. */ 173 174 do { 174 175 status = FIELD_GET(PEEK32(SYSTEM_CTRL), 175 176 SYSTEM_CTRL, 176 177 CRT_VSYNC); 177 - } 178 - while (status == SYSTEM_CTRL_CRT_VSYNC_INACTIVE); 178 + } while (status == SYSTEM_CTRL_CRT_VSYNC_INACTIVE); 179 179 } 180 180 } 181 181 }