From mboxrd@z Thu Jan 1 00:00:00 1970 From: Timur Tabi Subject: Re: [patch net-next] net: qcom/emac: fix a sizeof() typo Date: Mon, 13 Feb 2017 09:43:10 -0600 Message-ID: References: <20170213110021.GA17205@mwanda> <58A19E97.6000704@bfs.de> <23c98d90-913d-f590-2677-096bf5dc15ff@codeaurora.org> <58A1B492.9000103@bfs.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org To: wharms@bfs.de Return-path: In-Reply-To: <58A1B492.9000103@bfs.de> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org walter harms wrote: > The question is: why is a simple calculation const*const > separated into a function ? This is a callback function. That's just how it's defined. It's rare, but there are drivers that use the parameter, like this one: http://git.kernel.org/cgit/linux/kernel/git/davem/net-next.git/tree/drivers/net/ethernet/qlogic/qlge/qlge_ethtool.c#n591 -- Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by The Linux Foundation.