mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 20:54:10 +08:00
[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>
This commit is contained in:
parent
dd47a33806
commit
d158da81ee
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user