]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
staging: xgifb: Removed an unnecessary assignment statement
authorSarah Khan <sarahjmi07@gmail.com>
Thu, 23 Oct 2014 17:48:53 +0000 (23:18 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Oct 2014 02:33:05 +0000 (10:33 +0800)
Used coccinelle patch
@@

expression data;
identifier f;

@@

-data =
+return
     f(...);
-return (data);

Signed-off-by: Sarah Khan <sarahjmi07@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/xgifb/vb_util.c

index 1b452f8b62740f71ece6128e96091c56014a062c..be3437ca339e88b136d4f0fe77653727f82259d8 100644 (file)
@@ -9,11 +9,8 @@ void xgifb_reg_set(unsigned long port, u8 index, u8 data)
 
 u8 xgifb_reg_get(unsigned long port, u8 index)
 {
-       u8 data;
-
        outb(index, port);
-       data = inb(port + 1);
-       return data;
+       return inb(port + 1);
 }
 
 void xgifb_reg_and_or(unsigned long port, u8 index,