]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ALSA] gus: Use SEEK_{SET,CUR,END} instead of hardcoded values
authorJosef 'Jeff' Sipek <jeffpc@josefsipek.net>
Thu, 21 Sep 2006 09:33:14 +0000 (11:33 +0200)
committerJaroslav Kysela <perex@suse.cz>
Sat, 23 Sep 2006 08:47:52 +0000 (10:47 +0200)
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>
sound/isa/gus/gus_mem_proc.c

index 4080255007d5935df6f9a1cf289dd0d4dd47a29d..80f0a83818b2714f258c94f66d6dbe21fced0c4a 100644 (file)
@@ -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: