Skip to content

Commit 75d0bf8

Browse files
cgrogregkh
authored andcommitted
staging: most: sound: remove overcautious argument checking
The interface pointer passed to a component API function cannot be NULL. This patch removes the unnecessary sanity check of this argument. Signed-off-by: Christian Gromm <christian.gromm@microchip.com> Link: https://lore.kernel.org/r/1592924855-25569-6-git-send-email-christian.gromm@microchip.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 749a143 commit 75d0bf8

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎drivers/staging/most/sound/sound.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -531,9 +531,6 @@ static int audio_probe_channel(struct most_interface *iface, int channel_id,
531531
char *sample_res;
532532
char arg_list_cpy[STRING_SIZE];
533533

534-
if (!iface)
535-
return -EINVAL;
536-
537534
if (cfg->data_type != MOST_CH_SYNC) {
538535
pr_err("Incompatible channel type\n");
539536
return -EINVAL;

0 commit comments

Comments
 (0)