staging: xgifb: Removed an unnecessary assignment statement

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>
This commit is contained in:
Sarah Khan 2014-10-23 23:18:53 +05:30 committed by Greg Kroah-Hartman
parent b3dd8957c2
commit fe4c6a38b8

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