Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1945990AbbHGQ7G (ORCPT ); Fri, 7 Aug 2015 12:59:06 -0400 Received: from mail-wi0-f176.google.com ([209.85.212.176]:34386 "EHLO mail-wi0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1945898AbbHGQ7D (ORCPT ); Fri, 7 Aug 2015 12:59:03 -0400 From: Salah Triki To: minchan@kernel.org, ngupta@vflare.org, sergey.senozhatsky.work@gmail.com Cc: linux-kernel@vger.kernel.org, Salah Triki Subject: [PATCH V2] zram: Remove useless check Date: Fri, 7 Aug 2015 17:58:51 +0100 Message-Id: <1438966731-4384-1-git-send-email-salah.triki@acm.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1052 Lines: 29 lzo1x_1_compress always returns LZO_E_OK that is equal to 0. Signed-off-by: Salah Triki --- drivers/block/zram/zcomp_lzo.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/block/zram/zcomp_lzo.c b/drivers/block/zram/zcomp_lzo.c index da1bc47..3cf30c9 100644 --- a/drivers/block/zram/zcomp_lzo.c +++ b/drivers/block/zram/zcomp_lzo.c @@ -26,8 +26,7 @@ static void lzo_destroy(void *private) static int lzo_compress(const unsigned char *src, unsigned char *dst, size_t *dst_len, void *private) { - int ret = lzo1x_1_compress(src, PAGE_SIZE, dst, dst_len, private); - return ret == LZO_E_OK ? 0 : ret; + return lzo1x_1_compress(src, PAGE_SIZE, dst, dst_len, private); } static int lzo_decompress(const unsigned char *src, size_t src_len, -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/