diff options
Diffstat (limited to 'sound/pci/ctxfi/cthardware.c')
-rw-r--r-- | sound/pci/ctxfi/cthardware.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/pci/ctxfi/cthardware.c b/sound/pci/ctxfi/cthardware.c index a689f25..110b8ac 100644 --- a/sound/pci/ctxfi/cthardware.c +++ b/sound/pci/ctxfi/cthardware.c @@ -69,8 +69,7 @@ unsigned int get_field(unsigned int data, unsigned int field) { int i; - if (WARN_ON(!field)) - return 0; + BUG_ON(!field); /* @field should always be greater than 0 */ for (i = 0; !(field & (1 << i)); ) i++; @@ -82,8 +81,7 @@ void set_field(unsigned int *data, unsigned int field, unsigned int value) { int i; - if (WARN_ON(!field)) - return; + BUG_ON(!field); /* @field should always be greater than 0 */ for (i = 0; !(field & (1 << i)); ) i++; |