Mercurial > mplayer.hg
comparison vidix/sysdep/pci_freebsd.c @ 26753:502f04b67653
cosmetics: Remove useless parentheses from return statements.
author | diego |
---|---|
date | Fri, 16 May 2008 00:13:03 +0000 |
parents | 9c4ad35fabc5 |
children | 958431e2cde0 |
comparison
equal
deleted
inserted
replaced
26752:65f61607e32f | 26753:502f04b67653 |
---|---|
38 static __inline__ int enable_os_io(void) | 38 static __inline__ int enable_os_io(void) |
39 { | 39 { |
40 io_fd = -1 ; | 40 io_fd = -1 ; |
41 if ((io_fd = open("/dev/console", O_RDWR, 0)) < 0) { | 41 if ((io_fd = open("/dev/console", O_RDWR, 0)) < 0) { |
42 perror("/dev/console"); | 42 perror("/dev/console"); |
43 return(errno); | 43 return errno; |
44 } | 44 } |
45 if (ioctl(io_fd, KDENABIO, 0) < 0) { | 45 if (ioctl(io_fd, KDENABIO, 0) < 0) { |
46 perror("ioctl(KDENABIO)"); | 46 perror("ioctl(KDENABIO)"); |
47 return(errno); | 47 return errno; |
48 } | 48 } |
49 return(0); | 49 return 0; |
50 } | 50 } |
51 | 51 |
52 static __inline__ int disable_os_io(void) | 52 static __inline__ int disable_os_io(void) |
53 { | 53 { |
54 if (ioctl(io_fd, KDDISABIO, 0) < 0) { | 54 if (ioctl(io_fd, KDDISABIO, 0) < 0) { |
55 perror("ioctl(KDDISABIO)"); | 55 perror("ioctl(KDDISABIO)"); |
56 close(io_fd); | 56 close(io_fd); |
57 return(errno); | 57 return errno; |
58 } | 58 } |
59 close(io_fd); | 59 close(io_fd); |
60 return(0); | 60 return 0; |
61 } | 61 } |