ALSA: emux: prune unused parameter from snd_soundfont_load_guspatch()
The `client` parameter was not used, so eliminate it from the call chain. Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de> Message-ID: <20240406064830.1029573-3-oswald.buddenhagen@gmx.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
72829b98ff
commit
3f3e0dfc83
|
@ -89,7 +89,7 @@ struct snd_sf_list {
|
||||||
int snd_soundfont_load(struct snd_sf_list *sflist, const void __user *data,
|
int snd_soundfont_load(struct snd_sf_list *sflist, const void __user *data,
|
||||||
long count, int client);
|
long count, int client);
|
||||||
int snd_soundfont_load_guspatch(struct snd_sf_list *sflist, const char __user *data,
|
int snd_soundfont_load_guspatch(struct snd_sf_list *sflist, const char __user *data,
|
||||||
long count, int client);
|
long count);
|
||||||
int snd_soundfont_close_check(struct snd_sf_list *sflist, int client);
|
int snd_soundfont_close_check(struct snd_sf_list *sflist, int client);
|
||||||
|
|
||||||
struct snd_sf_list *snd_sf_new(struct snd_sf_callback *callback,
|
struct snd_sf_list *snd_sf_new(struct snd_sf_callback *callback,
|
||||||
|
|
|
@ -27,8 +27,7 @@ snd_emux_hwdep_load_patch(struct snd_emux *emu, void __user *arg)
|
||||||
|
|
||||||
if (patch.key == GUS_PATCH)
|
if (patch.key == GUS_PATCH)
|
||||||
return snd_soundfont_load_guspatch(emu->sflist, arg,
|
return snd_soundfont_load_guspatch(emu->sflist, arg,
|
||||||
patch.len + sizeof(patch),
|
patch.len + sizeof(patch));
|
||||||
TMP_CLIENT_ID);
|
|
||||||
|
|
||||||
if (patch.type >= SNDRV_SFNT_LOAD_INFO &&
|
if (patch.type >= SNDRV_SFNT_LOAD_INFO &&
|
||||||
patch.type <= SNDRV_SFNT_PROBE_DATA) {
|
patch.type <= SNDRV_SFNT_PROBE_DATA) {
|
||||||
|
|
|
@ -205,8 +205,7 @@ snd_emux_load_patch_seq_oss(struct snd_seq_oss_arg *arg, int format,
|
||||||
return -ENXIO;
|
return -ENXIO;
|
||||||
|
|
||||||
if (format == GUS_PATCH)
|
if (format == GUS_PATCH)
|
||||||
rc = snd_soundfont_load_guspatch(emu->sflist, buf, count,
|
rc = snd_soundfont_load_guspatch(emu->sflist, buf, count);
|
||||||
SF_CLIENT_NO(p->chset.port));
|
|
||||||
else if (format == SNDRV_OSS_SOUNDFONT_PATCH) {
|
else if (format == SNDRV_OSS_SOUNDFONT_PATCH) {
|
||||||
struct soundfont_patch_info patch;
|
struct soundfont_patch_info patch;
|
||||||
if (count < (int)sizeof(patch))
|
if (count < (int)sizeof(patch))
|
||||||
|
|
|
@ -941,8 +941,7 @@ int snd_sf_vol_table[128] = {
|
||||||
|
|
||||||
/* load GUS patch */
|
/* load GUS patch */
|
||||||
static int
|
static int
|
||||||
load_guspatch(struct snd_sf_list *sflist, const char __user *data,
|
load_guspatch(struct snd_sf_list *sflist, const char __user *data, long count)
|
||||||
long count, int client)
|
|
||||||
{
|
{
|
||||||
struct patch_info patch;
|
struct patch_info patch;
|
||||||
struct snd_soundfont *sf;
|
struct snd_soundfont *sf;
|
||||||
|
@ -1122,11 +1121,11 @@ load_guspatch(struct snd_sf_list *sflist, const char __user *data,
|
||||||
/* load GUS patch */
|
/* load GUS patch */
|
||||||
int
|
int
|
||||||
snd_soundfont_load_guspatch(struct snd_sf_list *sflist, const char __user *data,
|
snd_soundfont_load_guspatch(struct snd_sf_list *sflist, const char __user *data,
|
||||||
long count, int client)
|
long count)
|
||||||
{
|
{
|
||||||
int rc;
|
int rc;
|
||||||
lock_preset(sflist);
|
lock_preset(sflist);
|
||||||
rc = load_guspatch(sflist, data, count, client);
|
rc = load_guspatch(sflist, data, count);
|
||||||
unlock_preset(sflist);
|
unlock_preset(sflist);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue