Remove redundant code
cppcheck reported: [speedread.c:151]: (style) Condition 'h<0' is always true Change-Id: I78fe0bbd205b0ca5b03a71ace81ef4f9b616e268
This commit is contained in:
parent
9ecabc0a75
commit
8628c60469
1 changed files with 2 additions and 3 deletions
|
@ -147,9 +147,8 @@ static void cleanup(void)
|
||||||
/* returns height of drawn area */
|
/* returns height of drawn area */
|
||||||
static int reset_drawing(long proportion) /* 16.16 fixed point, goes from 0 --> 1 over time */
|
static int reset_drawing(long proportion) /* 16.16 fixed point, goes from 0 --> 1 over time */
|
||||||
{
|
{
|
||||||
int h = -1, w;
|
int w, h;
|
||||||
if(h < 0)
|
rb->lcd_getstringsize("X", &w, &h);
|
||||||
rb->lcd_getstringsize("X", &w, &h);
|
|
||||||
|
|
||||||
/* clear word area */
|
/* clear word area */
|
||||||
rb->lcd_set_foreground(BACKGROUND_COLOR);
|
rb->lcd_set_foreground(BACKGROUND_COLOR);
|
||||||
|
|
Loading…
Reference in a new issue