Remove redundant if statements.

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
This commit is contained in:
Miroslav Lichvar
2014-04-26 18:23:16 +02:00
committed by Amadeusz Sławiński
parent 1d27740fd2
commit 4e1946df99
2 changed files with 0 additions and 3 deletions

View File

@@ -127,7 +127,6 @@ display_status_tsi()
r = read(bd.bd_fd,ibuf,1);
if (r != 1)
return -1;
if (r != -1)
if (ibuf[0] == 'V')
r = read(bd.bd_fd, ibuf, 3);
else

View File

@@ -80,8 +80,6 @@ register char *str1, *str2;
}
else
{
if (len1 == 0)
return 0;
if ((cp = malloc((unsigned) len1 + add_colon + 1)) == NULL)
Panic(0, "%s", strnomem);
cp[len1 + add_colon] = '\0';