diff options
author | schweikh <schweikh@FreeBSD.org> | 2004-06-11 17:51:37 +0000 |
---|---|---|
committer | schweikh <schweikh@FreeBSD.org> | 2004-06-11 17:51:37 +0000 |
commit | 89df59b845a65c061802e82eb8f72d028de0839f (patch) | |
tree | 835796e4cb5733297f7a66bb21917861791c8ff0 /sys | |
parent | 8b8e5c020c0b21a82475fb39fbdc05da2aced350 (diff) | |
download | FreeBSD-src-89df59b845a65c061802e82eb8f72d028de0839f.zip FreeBSD-src-89df59b845a65c061802e82eb8f72d028de0839f.tar.gz |
* Fix typo in comment.
* remove extraneous semicolon between function definitions.
* vm_offset_t is not a pointer, so return 0, not NULL. This
fixes two warnings.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/bktr/bktr_mem.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/dev/bktr/bktr_mem.c b/sys/dev/bktr/bktr_mem.c index 23afc8b..7ebd50d 100644 --- a/sys/dev/bktr/bktr_mem.c +++ b/sys/dev/bktr/bktr_mem.c @@ -1,9 +1,7 @@ - - #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); /* - * This is prt of the Driver for Video Capture Cards (Frame grabbers) + * This is part of the Driver for Video Capture Cards (Frame grabbers) * and TV Tuner cards using the Brooktree Bt848, Bt848A, Bt849A, Bt878, Bt879 * chipset. * Copyright Roger Hardiman. @@ -96,7 +94,7 @@ bktr_mem_modevent(module_t mod, int type, void *unused){ break; } return 0; -}; +} /*************************************************************/ @@ -151,7 +149,7 @@ bktr_retrieve_address(int unit, int type) { if ((unit < 0) || (unit >= BKTR_MEM_MAX_DEVICES)) { printf("bktr_mem: Unit number %d too large for memory type %d\n",unit,type); - return NULL; + return 0; } switch (type) { case BKTR_MEM_DMA_PROG: return memory_list[unit].dma_prog; @@ -160,7 +158,7 @@ bktr_retrieve_address(int unit, int type) { case BKTR_MEM_VBIBUFFER: return memory_list[unit].vbibuffer; case BKTR_MEM_BUF: return memory_list[unit].buf; default: printf("bktr_mem: Invalid memory type %d for bktr%d",type,unit); - return NULL; + return 0; } } |