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);
void initialize_chip(struct pci_dev *pcidev)
{
struct cm_state *s;
mm_segment_t fs;
int i, val;
#if defined(CONFIG_SOUND_CMPCI_MIDI) || defined(CONFIG_SOUND_CMPCI_FM)
unsigned char reg_mask = 0;
......@@ -3038,8 +3037,6 @@ void initialize_chip(struct pci_dev *pcidev)
#endif
pci_set_master(pcidev); /* enable bus mastering */
/* initialize the chips */
fs = get_fs();
set_fs(KERNEL_DS);
/* set mixer output */
frobindir(s, DSP_MIX_OUTMIXIDX, 0x1f, 0x1f);
/* 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