summaryrefslogtreecommitdiffstats
path: root/sound/isa/gus
diff options
context:
space:
mode:
authorJosef 'Jeff' Sipek <jeffpc@josefsipek.net>2006-09-21 11:33:14 +0200
committerJaroslav Kysela <perex@suse.cz>2006-09-23 10:47:52 +0200
commitd158da81ee9a1fa70d980f58b0f143fa873ca9ed (patch)
tree6c255769165ac98acf6151f6e118cde57e02328a /sound/isa/gus
parentdd47a33806bfe93c08b071c4d26a2390cbbc9e65 (diff)
downloadop-kernel-dev-d158da81ee9a1fa70d980f58b0f143fa873ca9ed.zip
op-kernel-dev-d158da81ee9a1fa70d980f58b0f143fa873ca9ed.tar.gz
[ALSA] gus: Use SEEK_{SET,CUR,END} instead of hardcoded values
gus: Use SEEK_{SET,CUR,END} instead of hardcoded values Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/isa/gus')
-rw-r--r--sound/isa/gus/gus_mem_proc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/isa/gus/gus_mem_proc.c b/sound/isa/gus/gus_mem_proc.c
index 4080255..80f0a83 100644
--- a/sound/isa/gus/gus_mem_proc.c
+++ b/sound/isa/gus/gus_mem_proc.c
@@ -61,13 +61,13 @@ static long long snd_gf1_mem_proc_llseek(struct snd_info_entry *entry,
struct gus_proc_private *priv = entry->private_data;
switch (orig) {
- case 0: /* SEEK_SET */
+ case SEEK_SET:
file->f_pos = offset;
break;
- case 1: /* SEEK_CUR */
+ case SEEK_CUR:
file->f_pos += offset;
break;
- case 2: /* SEEK_END, offset is negative */
+ case SEEK_END: /* offset is negative */
file->f_pos = priv->size + offset;
break;
default:
OpenPOWER on IntegriCloud