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

index 9663b6be9c3a095c9161359212f42e45489ce595..e43662b33f16e6ce7bf3b975175639194d6ced3f 100644 (file)
@@ -175,15 +175,15 @@ static loff_t snd_info_entry_llseek(struct file *file, loff_t offset, int orig)
        switch (entry->content) {
        case SNDRV_INFO_CONTENT_TEXT:
                switch (orig) {
-               case 0: /* SEEK_SET */
+               case SEEK_SET:
                        file->f_pos = offset;
                        ret = file->f_pos;
                        goto out;
-               case 1: /* SEEK_CUR */
+               case SEEK_CUR:
                        file->f_pos += offset;
                        ret = file->f_pos;
                        goto out;
-               case 2: /* SEEK_END */
+               case SEEK_END:
                default:
                        ret = -EINVAL;
                        goto out;