From patchwork Wed Sep 16 02:23:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ideal X-Patchwork-Id: 518246 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 0095F140082 for ; Wed, 16 Sep 2015 12:26:18 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=PdHiJqKQ; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id A557531356; Wed, 16 Sep 2015 02:26:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zxmpzofp8huy; Wed, 16 Sep 2015 02:26:14 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 0B48F31341; Wed, 16 Sep 2015 02:26:14 +0000 (UTC) X-Original-To: uclibc@lists.busybox.net Delivered-To: uclibc@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id E81B81C1F9B for ; Wed, 16 Sep 2015 02:26:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id E5C0D87F97 for ; Wed, 16 Sep 2015 02:26:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uSBqeYceFmYf for ; Wed, 16 Sep 2015 02:26:12 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pa0-f42.google.com (mail-pa0-f42.google.com [209.85.220.42]) by hemlock.osuosl.org (Postfix) with ESMTPS id 0BCDE87FF5 for ; Wed, 16 Sep 2015 02:26:12 +0000 (UTC) Received: by pacfv12 with SMTP id fv12so197523661pac.2 for ; Tue, 15 Sep 2015 19:26:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=C17kcD9yiogKt1oLQPwXq4gC/jCl2pi012vlQLehCok=; b=PdHiJqKQf99TVnOqJEaxnSlX6GPqssuN/ZQx3+/F3TK+g6ef4JWwvJDE9lFk5gwuOX Xb0tGylRZlKNtvQM7yAj8m7v46jNOeBL3m/FS6YjmOOF/WVLvcUSPuv6MarqQDNAHKgF 3iBc7231AVuQ8Ds+kZKMKKwGM/jD6KtLhv/F9XBUcmOtOUSGSPOwKJKMM3fTVz3sweeW mZDvI8X5u3cYCYDs5JrK/QLnOVG3I/JIJlaJx2gwuopLt3Z8I+ThucLcH8bwgcq/S51m bX3hFFY1/RrNdylGUsuPEgrESa5Wd9zvmoB9bsUEi5E4m/Xk3VESjEyJfVDRUK1YUsHX Ry6Q== X-Received: by 10.66.101.39 with SMTP id fd7mr53466279pab.3.1442370371790; Tue, 15 Sep 2015 19:26:11 -0700 (PDT) Received: from linux-a0zz.site ([202.55.20.10]) by smtp.gmail.com with ESMTPSA id gq7sm24618961pac.5.2015.09.15.19.26.07 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Sep 2015 19:26:10 -0700 (PDT) From: ideal To: uclibc@uclibc.org Subject: [PATCH] fflush.c: remove duplicate validation Date: Wed, 16 Sep 2015 10:23:31 +0800 Message-Id: <1442370211-4510-1-git-send-email-idealities@gmail.com> X-Mailer: git-send-email 2.4.3 X-BeenThere: uclibc@uclibc.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussion and development of uClibc \(the embedded C library\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: uclibc-bounces@uclibc.org Sender: "uClibc" remove duplicate validation of stream Signed-off-by: ideal --- libc/stdio/fflush.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/libc/stdio/fflush.c b/libc/stdio/fflush.c index d9104a4..d47d070 100644 --- a/libc/stdio/fflush.c +++ b/libc/stdio/fflush.c @@ -140,12 +140,6 @@ int fflush_unlocked(register FILE *stream) } #endif -#ifndef NDEBUG - if ((stream != NULL) && (stream != (FILE *) &_stdio_openlist)) { - __STDIO_STREAM_VALIDATE(stream); /* debugging only */ - } -#endif - return retval; #else /* __STDIO_BUFFERS --------------------------------------- */