Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755163AbbGFNUa (ORCPT ); Mon, 6 Jul 2015 09:20:30 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:33590 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755013AbbGFNUY (ORCPT ); Mon, 6 Jul 2015 09:20:24 -0400 Date: Mon, 6 Jul 2015 18:50:12 +0530 From: Ravi Teja Darbha To: Sudip Mukherjee Cc: Arjun Krishna Babu , devel@driverdev.osuosl.org, lidza.louina@gmail.com, driverdev-devel@linuxdriverproject.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org Subject: Re: [PATCH] staging: dgnc: Replace macro with flow control statement by a function Message-ID: <20150706132012.GA5180@gmail.com> References: <1436120188-15368-1-git-send-email-arjunkrishnababu96@gmail.com> <20150706121524.GB2226@gmail.com> <20150706122705.GA3285@sudip-PC> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150706122705.GA3285@sudip-PC> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 452 Lines: 12 Why would you use a macro to avoid code duplication? Regards, Ravi Teja On Mon, Jul 06, 2015 at 05:57:06PM +0530, Sudip Mukherjee wrote: > That is why the macro is there, to avoid the duplication of code. -- 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/