diff options
author | Tamara Diaconita <diaconitatamara@gmail.com> | 2017-03-14 14:10:37 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-16 11:47:41 +0900 |
commit | e08b667058004119349f8230ad15b408e85716ab (patch) | |
tree | 6d6bc9c20e1ae31c702e43974022df917045bcaa /drivers/staging/wilc1000/wilc_spi.c | |
parent | 5844e42c291242145133e773139ac187e09d0f78 (diff) |
staging: wilc1000: Correct name of variables
Correct misspelled variables: 'happended' to 'happened' to make the
code grammatically correct.
Signed-off-by: Tamara Diaconita <diaconita.tamara@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000/wilc_spi.c')
-rw-r--r-- | drivers/staging/wilc1000/wilc_spi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/wilc1000/wilc_spi.c b/drivers/staging/wilc1000/wilc_spi.c index 14c3529a27ca..1bc78678f893 100644 --- a/drivers/staging/wilc1000/wilc_spi.c +++ b/drivers/staging/wilc1000/wilc_spi.c @@ -929,7 +929,7 @@ static int wilc_spi_read_int(struct wilc *wilc, u32 *int_status) int ret; u32 tmp; u32 byte_cnt; - int happended, j; + int happened, j; u32 unknown_mask; u32 irq_flags; @@ -949,7 +949,7 @@ static int wilc_spi_read_int(struct wilc *wilc, u32 *int_status) { j = 0; do { - happended = 0; + happened = 0; wilc_spi_read_reg(wilc, 0x1a90, &irq_flags); tmp |= ((irq_flags >> 27) << IRG_FLAGS_OFFSET); @@ -965,11 +965,11 @@ static int wilc_spi_read_int(struct wilc *wilc, u32 *int_status) if ((tmp >> IRG_FLAGS_OFFSET) & unknown_mask) { dev_err(&spi->dev, "Unexpected interrupt (2): j=%d, tmp=%x, mask=%x\n", j, tmp, unknown_mask); - happended = 1; + happened = 1; } } j++; - } while (happended); + } while (happened); } *int_status = tmp; |