diff options
author | Peter Huewe <peterhuewe@gmx.de> | 2010-12-02 02:43:32 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-12-02 23:34:59 +0300 |
commit | eb6b420da13fee2edc30b7bde67c0c8993c4c30d (patch) | |
tree | 6d603b0807f2d400f4e26996c846ef0d325b8dc5 /drivers/staging/sep/sep_dev.h | |
parent | ff29ee8f9301c38f28d4d22fe49373d3b996956e (diff) | |
download | linux-eb6b420da13fee2edc30b7bde67c0c8993c4c30d.tar.xz |
staging/sep: Fix sparse warning 'do-while statement is not a compound statement'
This patch fixes the warning generated by sparse: 'do-while statement is
not a compound statement' by adding the necessary brackets around the do
block
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/sep/sep_dev.h')
-rw-r--r-- | drivers/staging/sep/sep_dev.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/sep/sep_dev.h b/drivers/staging/sep/sep_dev.h index 7b4993b3650d..0ffe68cb7140 100644 --- a/drivers/staging/sep/sep_dev.h +++ b/drivers/staging/sep/sep_dev.h @@ -147,9 +147,9 @@ static inline u32 sep_read_reg(struct sep_device *dev, int reg) static inline void sep_wait_sram_write(struct sep_device *dev) { u32 reg_val; - do + do { reg_val = sep_read_reg(dev, HW_SRAM_DATA_READY_REG_ADDR); - while (!(reg_val & 1)); + } while (!(reg_val & 1)); } |