Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: pcs: lynx: use a common naming scheme for all lynx_pcs variables

pcs-lynx.c used lynx_pcs and lynx as a variable name within the same file.
This standardizes all internal variables to just "lynx"

Signed-off-by: Colin Foster <colin.foster@in-advantage.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Colin Foster and committed by
David S. Miller
0699b3e0 82cc4537

+7 -7
+7 -7
drivers/net/pcs/pcs-lynx.c
··· 345 345 346 346 struct phylink_pcs *lynx_pcs_create(struct mdio_device *mdio) 347 347 { 348 - struct lynx_pcs *lynx_pcs; 348 + struct lynx_pcs *lynx; 349 349 350 - lynx_pcs = kzalloc(sizeof(*lynx_pcs), GFP_KERNEL); 351 - if (!lynx_pcs) 350 + lynx = kzalloc(sizeof(*lynx), GFP_KERNEL); 351 + if (!lynx) 352 352 return NULL; 353 353 354 - lynx_pcs->mdio = mdio; 355 - lynx_pcs->pcs.ops = &lynx_pcs_phylink_ops; 356 - lynx_pcs->pcs.poll = true; 354 + lynx->mdio = mdio; 355 + lynx->pcs.ops = &lynx_pcs_phylink_ops; 356 + lynx->pcs.poll = true; 357 357 358 - return lynx_to_phylink_pcs(lynx_pcs); 358 + return lynx_to_phylink_pcs(lynx); 359 359 } 360 360 EXPORT_SYMBOL(lynx_pcs_create); 361 361