Re: [patch net-next] net: qcom/emac: fix a sizeof() typo

From: Timur Tabi
Date: Mon Feb 13 2017 - 10:43:28 EST

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:

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.