staging: sm750fb: Remove unneeded function
Subsystems (2)
PATCH 1/1 staging: sm750fb: Remove unneeded function
The function hw_sm750_getVMSize() had code that was replaceable by a single line. It was being called only once so replaced that call with the single line code and removed the extraneous function.
--- drivers/staging/sm750fb/sm750_hw.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-)
drivers/staging/sm750fb/sm750_hw.c +1 -8
@@ -72,7 +72,7 @@ int hw_sm750_map(struct lynx_share *share, struct pci_dev *pdev)* size but not the actual size,use * @hw_sm750_getVMSize function can be safe. * */ - share->vidmem_size =hw_sm750_getVMSize (share); + share->vidmem_size =ddk750_getVMSize ();pr_info ("video memory phyAddr = %lx, size = %u bytes\n" , share->vidmem_start, share->vidmem_size);
@@ -182,13 +182,6 @@ int hw_sm750_inithw(struct lynx_share *share, struct pci_dev *pdev) } -resource_size_t hw_sm750_getVMSize (struct lynx_share *share) -{ -resource_size_t ret; - - ret =ddk750_getVMSize (); -return ret; -}int hw_sm750_output_setMode (struct lynxfb_output *output,struct fb_var_screeninfo *var,struct fb_fix_screeninfo *fix)
Signature · 1 line
1.9.1
Greg KH
maintainerQuoted 8 lines · Amitoj Kaur Chawla
The function
hw_sm750_getVMSize()had code that was replaceable by a single line. It was being called only once so replaced that call with the single line code and removed the extraneous function.Signed-off-by Amitoj Kaur Chawla <[email protected]>--- drivers/staging/sm750fb/sm750_hw.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-)
This no longer applies due to patches that someone else sent right before you did, sorry :(
greg k-h
Quoted 10 lines · Greg KH
Quoted 8 lines · Amitoj Kaur Chawla
The function
hw_sm750_getVMSize()had code that was replaceable by a single line. It was being called only once so replaced that call with the single line code and removed the extraneous function.Signed-off-by Amitoj Kaur Chawla <[email protected]>--- drivers/staging/sm750fb/sm750_hw.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-)
Quoted 4 lines
This no longer applies due to patches that someone else sent right before you did, sorry :(
greg k-h
No issues.
Signature · 1 line
Amitoj