Update drivers/input/keyboard/brain-kbd-i2c.c

add {} to 'if' block

Co-authored-by: Takumi Sueda <puhitaku@gmail.com>
This commit is contained in:
SuperTurboZ 2022-11-23 21:34:34 +09:00 committed by GitHub
parent db13ca6c2a
commit 93a21c856d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -169,7 +169,9 @@ static irqreturn_t bk_i2c_irq_handler(int irq, void *devid)
dev_dbg(&kbd->cli->dev, "Raw key event 2 and 3: %02X,%02X\n", k2, k3);
detect_key(kbd, k2);
if(n<3) goto done;
if (n < 3) {
goto done;
}
detect_key(kbd, k3);
done:
input_sync(kbd->idev);