From 5feeee62c8c9be2a036ba89be0c56dd8b339b180 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Wed, 9 Apr 2014 11:00:22 +0100 Subject: [PATCH] shm: remove dead code Coverity 1139683 --- sys/shm/shmpipe.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sys/shm/shmpipe.c b/sys/shm/shmpipe.c index 6ee63506d0..6bd9efc42b 100644 --- a/sys/shm/shmpipe.c +++ b/sys/shm/shmpipe.c @@ -725,15 +725,11 @@ sp_writer_recv (ShmPipe * self, ShmClient * client, void **tag) if (buf->shm_area->id == cb.area_id && buf->offset == cb.payload.ack_buffer.offset) { return sp_shmbuf_dec (self, buf, prev_buf, client, tag); - break; } prev_buf = buf; } - if (!buf) - return -2; - - break; + return -2; default: return -99; }