From patchwork Fri Jul 7 13:39:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luc Van Oostenryck X-Patchwork-Id: 9830289 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id AA7B460352 for ; Fri, 7 Jul 2017 13:40:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A235E2869C for ; Fri, 7 Jul 2017 13:40:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9727A286A4; Fri, 7 Jul 2017 13:40:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0A332286A1 for ; Fri, 7 Jul 2017 13:40:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752506AbdGGNkd (ORCPT ); Fri, 7 Jul 2017 09:40:33 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:33160 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752724AbdGGNkb (ORCPT ); Fri, 7 Jul 2017 09:40:31 -0400 Received: by mail-lf0-f68.google.com with SMTP id t72so4029424lff.0 for ; Fri, 07 Jul 2017 06:40:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=k81ZEVp78QR31oj5XWAOQsohheBSZTnRWOop5XjFb74=; b=UkqfeGrgPBYfnmPO52kk8E/8HHlNAMz0HO/wh1hFAV07ic15hUg+IbOy2vuXB3pizf NyI4/QNMPNw5/J8rmFHjhAB5q85PDrt2IFHHw9Q1cWhTDnp4kQ0BLfv0xtKBcB+hlQo4 yqqywvKtGuUYLo5CK3WTj6cWU2C9R/ewKBMD7dE+bBsPnbuNnxu8t3p0/1jprdqo9U6r 0YQnjG0ko49ye/K491aIVzywFD2vPeCupN0fyiORwmLkmy0l+V2/QvMQuQI0/yYrZhRB uSdLNeDO3M63IXAfIEU2WLv12Abny5vKuFQk3Lgl6a6xcBq/gfBPNsYbyfED1Z08uGd0 jKmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=k81ZEVp78QR31oj5XWAOQsohheBSZTnRWOop5XjFb74=; b=AaVVHRJyKXglwFMSuKzE+mjApKoI4wzdnTVz200KWYxKHjX5ig5mpSkcTva6FUR4mz b1z/orc34ByhaSJc2AicvHRDB1h4zcgDMJ+FmS6Lib+VwAbhJ0UhpKXoXJmnuVZgtrMn s5kRJaaX312L25m3iJwp6r42+pRK0lxZY51eUxJUOT3sYgIA4st0fWVywVUMBSbYRBs4 MHjhbktlir2WvYVnoUR2ByWb74Wi4A18XWGchwF/DQIUzCf6f3gr657E3xgMxzpSm96a 5hgiHQrS6SizethBN4JSSlDpgSTDlN9/sfmCkkU7i/0LIUL870O4/lrJ+snwVLM/V40f pz4A== X-Gm-Message-State: AIVw113R1jLNJBK1rvJpWKSD3qLZHE2MsW4Xnp9btg1DopbViodDTO+r K8RYyHt+akgCTyo4rAQ= X-Received: by 10.80.184.24 with SMTP id j24mr2354109ede.176.1499434829295; Fri, 07 Jul 2017 06:40:29 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:8ed:9a00:3d4d:9b95:75f7:a8db]) by smtp.gmail.com with ESMTPSA id e28sm1899277ede.14.2017.07.07.06.40.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Jul 2017 06:40:28 -0700 (PDT) From: Luc Van Oostenryck To: linux-sparse@vger.kernel.org Cc: Christopher Li , Linus Torvalds , Luc Van Oostenryck Subject: [PATCH 19/34] ptrlist: remove unneeded DO_INIT() Date: Fri, 7 Jul 2017 15:39:47 +0200 Message-Id: <20170707134002.49500-20-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170707134002.49500-1-luc.vanoostenryck@gmail.com> References: <20170707134002.49500-1-luc.vanoostenryck@gmail.com> Sender: linux-sparse-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sparse@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP --- ptrlist.h | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/ptrlist.h b/ptrlist.h index c3538a260..0e6d30b99 100644 --- a/ptrlist.h +++ b/ptrlist.h @@ -113,18 +113,8 @@ static inline void *last_ptr_list(struct ptr_list *list) return __PTR_STRIP_TAG(ptr_cur_entry(&cur)); } -static inline void ptr_cur_init(struct ptr_cur *cur, struct ptr_list *head) -{ - cur->h = head; - cur->l = head; - cur->n = 0; -} - -#define DO_INIT(cur, head) \ - ptr_cur_init(&cur, (struct ptr_list *) head) - #define DO_PREPARE(head, ptr, __cur, CUR_ENTRY) \ - do { \ +do { \ struct ptr_cur __cur; \ CHECK_TYPE(head,ptr); \ if (!ptr_cur_beg(&__cur, (struct ptr_list *)head) || \