mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-15 02:05:33 +00:00
net: ethernet: bgmac: Remove unnecessary 'return' from platform_bgmac_idm_write
Return type for idm register write callback should be void as 'writel' API is used for write operation. However, there no need to have 'return' in this function. Signed-off-by: Abhishek Shah <abhishek.shah@broadcom.com> Reviewed-by: Oza Oza <oza.oza@broadcom.com> Reviewed-by: Ray Jui <ray.jui@broadcom.com> Reviewed-by: Scott Branden <scott.branden@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
10b3bf5440
commit
83a5c5af26
@ -50,7 +50,7 @@ static u32 platform_bgmac_idm_read(struct bgmac *bgmac, u16 offset)
|
||||
|
||||
static void platform_bgmac_idm_write(struct bgmac *bgmac, u16 offset, u32 value)
|
||||
{
|
||||
return writel(value, bgmac->plat.idm_base + offset);
|
||||
writel(value, bgmac->plat.idm_base + offset);
|
||||
}
|
||||
|
||||
static bool platform_bgmac_clk_enabled(struct bgmac *bgmac)
|
||||
|
Loading…
x
Reference in New Issue
Block a user