[PATCH 2/2] Staging: netlogic: platform_net.c: introduced a helper function

Greg KH gregkh at linuxfoundation.org
Fri Feb 16 14:33:12 UTC 2018


On Wed, Jan 17, 2018 at 02:10:47PM +0530, Naveen Panwar wrote:
> In staging/netlogic/platform.c Refactoring the identical code used
> in several places for calculating the physical address of
> memory-mapped objects on the device.Put that into an inline helper
> function and use it.
> 
> Adjust the types of arguments of xlr_resource_init() - 'offset' and 'irq'
> are actually unsigned.  The values passed to those fit into 0..2G range,
> so the behaviour is unchanged, but it's more consistent that way.
> 
> Signed-off-by: Naveen Panwar <naveen.panwar27 at gmail.com>
> ---
>  drivers/staging/netlogic/platform_net.c | 21 +++++++++++----------
>  1 file changed, 11 insertions(+), 10 deletions(-)

This patch does not apply at all :(


More information about the devel mailing list