ALSA: Close holes in struct snd_pcm_hw_rule
On a 64-bit system there are two 32-bit holes due to the alignment of 64-bit fields. Reordering things slightly gets rid of those holes, reducing the size of the struct by 17% percent of its original size. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
a0dca822e9
commit
d16efa0626
1 changed files with 2 additions and 1 deletions
|
@ -224,9 +224,10 @@ typedef int (*snd_pcm_hw_rule_func_t)(struct snd_pcm_hw_params *params,
|
|||
|
||||
struct snd_pcm_hw_rule {
|
||||
unsigned int cond;
|
||||
snd_pcm_hw_rule_func_t func;
|
||||
int var;
|
||||
int deps[4];
|
||||
|
||||
snd_pcm_hw_rule_func_t func;
|
||||
void *private;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue