aboutsummaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorShreenidhi Shedi <sshedi@vmware.com>2021-09-03 08:06:53 +0300
committerSergey Poznyakoff <gray@gnu.org>2021-09-03 08:08:47 +0300
commit86dacfe3e060ce95d5a2c0c5ec01f6437b0b6089 (patch)
treeee9cfe1ec32a891f7cd58785c0b679e4db89562d /src/util.c
parent4d169305dcb34137dc41acc761d8703eae2c63bf (diff)
downloadcpio-86dacfe3e060ce95d5a2c0c5ec01f6437b0b6089.tar.gz
cpio-86dacfe3e060ce95d5a2c0c5ec01f6437b0b6089.tar.bz2
Remove redundant condition check
* src/util.c (tape_empty_output_buffer): Fix condition.
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util.c b/src/util.c
index ff2746d..b8c9637 100644
--- a/src/util.c
+++ b/src/util.c
@@ -79,8 +79,7 @@ tape_empty_output_buffer (int out_des)
if (output_is_special
&& (bytes_written >= 0
- || (bytes_written < 0
- && (errno == ENOSPC || errno == EIO || errno == ENXIO))))
+ || (errno == ENOSPC || errno == EIO || errno == ENXIO)))
{
get_next_reel (out_des);
if (bytes_written > 0)

Return to:

Send suggestions and report system problems to the System administrator.