diff options
author | Sarah Khan <sarahjmi07@gmail.com> | 2014-10-23 23:18:53 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-10-27 10:33:05 +0800 |
commit | fe4c6a38b8379baf0bf7fe676c62e39c060d735b (patch) | |
tree | 9e4ad1dd2efa52fc3902ad21b8321d317695dfba /drivers/staging/xgifb | |
parent | b3dd8957c23a9e2eed612469d02a6e418b585e6b (diff) | |
download | linux-fe4c6a38b8379baf0bf7fe676c62e39c060d735b.tar.bz2 |
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>
Diffstat (limited to 'drivers/staging/xgifb')
-rw-r--r-- | drivers/staging/xgifb/vb_util.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/xgifb/vb_util.c b/drivers/staging/xgifb/vb_util.c index 1b452f8b6274..be3437ca339e 100644 --- a/drivers/staging/xgifb/vb_util.c +++ b/drivers/staging/xgifb/vb_util.c @@ -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, |