summaryrefslogtreecommitdiffstats
path: root/sound/pci/ctxfi/cthardware.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2009-06-08 14:57:57 +0200
committerTakashi Iwai <tiwai@suse.de>2009-06-08 14:57:57 +0200
commit514eef9c2a711b4c24b97bb456d39695a6fe1775 (patch)
tree0d98fb13304707682faa56d136249e9177a54932 /sound/pci/ctxfi/cthardware.c
parentALSA: ctxfi - Fix DMA mask for emu20k2 chip (diff)
downloadlinux-514eef9c2a711b4c24b97bb456d39695a6fe1775.tar.xz
linux-514eef9c2a711b4c24b97bb456d39695a6fe1775.zip
ALSA: ctxfi - Remove useless initializations and cast
Remove useless variable initializations and cast at the beginning of functions. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ctxfi/cthardware.c')
-rw-r--r--sound/pci/ctxfi/cthardware.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/pci/ctxfi/cthardware.c b/sound/pci/ctxfi/cthardware.c
index 53d1acadc0e8..5ec6813d3911 100644
--- a/sound/pci/ctxfi/cthardware.c
+++ b/sound/pci/ctxfi/cthardware.c
@@ -22,7 +22,7 @@
static enum CHIPTYP __devinitdata get_chip_type(struct hw *hw)
{
- enum CHIPTYP type = ATCNONE;
+ enum CHIPTYP type;
switch (hw->pci->device) {
case 0x0005: /* 20k1 device */
@@ -41,7 +41,7 @@ static enum CHIPTYP __devinitdata get_chip_type(struct hw *hw)
int __devinit create_hw_obj(struct pci_dev *pci, struct hw **rhw)
{
- int err = 0;
+ int err;
switch (pci->device) {
case 0x0005: /* 20k1 device */
@@ -65,7 +65,7 @@ int __devinit create_hw_obj(struct pci_dev *pci, struct hw **rhw)
int destroy_hw_obj(struct hw *hw)
{
- int err = 0;
+ int err;
switch (hw->pci->device) {
case 0x0005: /* 20k1 device */