Skip to contentSkip to conversation

staging: sm750fb: Remove unneeded function

PATCH In review Amitoj Kaur Chawla 2 participants 3 messages Oct 26, 2015 – Oct 27, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index 92e194d..9ba94c3 100644
@@ -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
maintainer
#1 lore raw
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.

---
 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

#2 lore raw
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.

---
 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