Commit a61f9729 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] cmpci.c: remove pointless set_fs()

It is doing a set_fs(KERNEL_DS) for no obvious reason.

Spotted by margitsw@t-online.de (Margit Schubert-While)
parent 9e77aa68
...@@ -2876,7 +2876,6 @@ MODULE_DEVICE_TABLE(pci, cmpci_pci_tbl); ...@@ -2876,7 +2876,6 @@ MODULE_DEVICE_TABLE(pci, cmpci_pci_tbl);
void initialize_chip(struct pci_dev *pcidev) void initialize_chip(struct pci_dev *pcidev)
{ {
struct cm_state *s; struct cm_state *s;
mm_segment_t fs;
int i, val; int i, val;
#if defined(CONFIG_SOUND_CMPCI_MIDI) || defined(CONFIG_SOUND_CMPCI_FM) #if defined(CONFIG_SOUND_CMPCI_MIDI) || defined(CONFIG_SOUND_CMPCI_FM)
unsigned char reg_mask = 0; unsigned char reg_mask = 0;
...@@ -3038,8 +3037,6 @@ void initialize_chip(struct pci_dev *pcidev) ...@@ -3038,8 +3037,6 @@ void initialize_chip(struct pci_dev *pcidev)
#endif #endif
pci_set_master(pcidev); /* enable bus mastering */ pci_set_master(pcidev); /* enable bus mastering */
/* initialize the chips */ /* initialize the chips */
fs = get_fs();
set_fs(KERNEL_DS);
/* set mixer output */ /* set mixer output */
frobindir(s, DSP_MIX_OUTMIXIDX, 0x1f, 0x1f); frobindir(s, DSP_MIX_OUTMIXIDX, 0x1f, 0x1f);
/* set mixer input */ /* set mixer input */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment