Eliminate unnecessary, trailing else conditional blocks.
This commit is contained in:
+1
-2
@@ -46,9 +46,8 @@ int swrite( int fd, const char *str, ssize_t len )
|
||||
if ( bytes_written <= 0 ) {
|
||||
perror( "write" );
|
||||
return -1;
|
||||
} else {
|
||||
total_bytes_written += bytes_written;
|
||||
}
|
||||
total_bytes_written += bytes_written;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user