comparison vidix/sysdep/pci_linux.c @ 26753:502f04b67653

cosmetics: Remove useless parentheses from return statements.
author diego
date Fri, 16 May 2008 00:13:03 +0000
parents 9c4ad35fabc5
children 2b0f08e696ba
comparison
equal deleted inserted replaced
26752:65f61607e32f 26753:502f04b67653
94 #ifdef CONFIG_SVGAHELPER 94 #ifdef CONFIG_SVGAHELPER
95 svgahelper_fd = open(DEV_SVGA, O_RDWR); 95 svgahelper_fd = open(DEV_SVGA, O_RDWR);
96 if (svgahelper_fd > 0) 96 if (svgahelper_fd > 0)
97 { 97 {
98 svgahelper_initialized = 1; 98 svgahelper_initialized = 1;
99 return(0); 99 return 0;
100 } 100 }
101 svgahelper_initialized = -1; 101 svgahelper_initialized = -1;
102 #endif 102 #endif
103 103
104 #ifdef CONFIG_DHAHELPER 104 #ifdef CONFIG_DHAHELPER
105 dhahelper_fd = open("/dev/dhahelper", O_RDWR); 105 dhahelper_fd = open("/dev/dhahelper", O_RDWR);
106 if (dhahelper_fd > 0) 106 if (dhahelper_fd > 0)
107 { 107 {
108 dhahelper_initialized = 1; 108 dhahelper_initialized = 1;
109 return(0); 109 return 0;
110 } 110 }
111 dhahelper_initialized = -1; 111 dhahelper_initialized = -1;
112 #endif 112 #endif
113 113
114 #if defined(__powerpc__) && defined(__linux__) 114 #if defined(__powerpc__) && defined(__linux__)
115 /* should be fixed? */ 115 /* should be fixed? */
116 #else 116 #else
117 if (iopl(3) != 0) 117 if (iopl(3) != 0)
118 return(errno); 118 return errno;
119 #endif 119 #endif
120 return(0); 120 return 0;
121 } 121 }
122 122
123 static __inline__ int disable_os_io(void) 123 static __inline__ int disable_os_io(void)
124 { 124 {
125 #ifdef CONFIG_SVGAHELPER 125 #ifdef CONFIG_SVGAHELPER
134 #endif 134 #endif
135 #if defined(__powerpc__) && defined(__linux__) 135 #if defined(__powerpc__) && defined(__linux__)
136 /* should be fixed? */ 136 /* should be fixed? */
137 #else 137 #else
138 if (iopl(0) != 0) 138 if (iopl(0) != 0)
139 return(errno); 139 return errno;
140 #endif 140 #endif
141 return(0); 141 return 0;
142 } 142 }
143 143
144 #if (defined(__powerpc__) || defined(__sparc__) || defined(__sparc64__) \ 144 #if (defined(__powerpc__) || defined(__sparc__) || defined(__sparc64__) \
145 || defined(__x86_64__)) && defined(__linux__) && !defined(CONFIG_SVGAHELPER) 145 || defined(__x86_64__)) && defined(__linux__) && !defined(CONFIG_SVGAHELPER)
146 #define CONFIG_PCI_LINUX_PROC 146 #define CONFIG_PCI_LINUX_PROC