Skip to content

Commit

Permalink
ALSA: fireface: obsolete usage of ktime_set() for zero assignment
Browse files Browse the repository at this point in the history
In development period for Linux v4.10, ktime_t became an alias of s64,
instead of union. I forgot it. We can just assign zero, instead of usage
of ktime_set(0, 0).

Fixes: 1917429 ("ALSA: fireface: add transaction support")
Signed-off-by: Takashi Sakamoto <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
takaswie authored and tiwai committed Apr 20, 2017
1 parent fa8323b commit e3a973c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/firewire/fireface/ff-transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ static void finish_transmit_midi_msg(struct snd_ff *ff, unsigned int port,

if (rcode != RCODE_COMPLETE) {
/* Transfer the message again, immediately. */
ff->next_ktime[port] = ktime_set(0, 0);
ff->next_ktime[port] = 0;
schedule_work(&ff->rx_midi_work[port]);
return;
}
Expand Down

0 comments on commit e3a973c

Please sign in to comment.