[ALSA] opl4: Use SEEK_{SET,CUR,END} instead of hardcoded values
authorJosef 'Jeff' Sipek <jeffpc@josefsipek.net>
Thu, 21 Sep 2006 09:32:43 +0000 (11:32 +0200)
committerJaroslav Kysela <perex@suse.cz>
Sat, 23 Sep 2006 08:47:47 +0000 (10:47 +0200)
opl4: 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/drivers/opl4/opl4_proc.c

index 11dd811771a4b7978cd1f3ee863de4f314e944dc..1679300b75835398276f3fd57b02dab4591e52a6 100644 (file)
@@ -105,13 +105,13 @@ static long long snd_opl4_mem_proc_llseek(struct snd_info_entry *entry, void *fi
                                          struct file *file, long long offset, int orig)
 {
        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 = entry->size + offset;
                break;
        default: