summaryrefslogtreecommitdiff
path: root/src/mainboard/asus/m4a785-m/mainboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/asus/m4a785-m/mainboard.c')
-rw-r--r--src/mainboard/asus/m4a785-m/mainboard.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mainboard/asus/m4a785-m/mainboard.c b/src/mainboard/asus/m4a785-m/mainboard.c
index 0a0eedd859..53c97b8d43 100644
--- a/src/mainboard/asus/m4a785-m/mainboard.c
+++ b/src/mainboard/asus/m4a785-m/mainboard.c
@@ -104,13 +104,7 @@ int is_dev3_present(void)
/* read the GPIO68 input status */
word = pci_read_config16(sm_dev, 0x7e);
- if(word & (1 << 10)){
- /*not exist*/
- return 0;
- }else{
- /*exist*/
- return 1;
- }
+ return !(word & (1 << 10));
}
/*