From a857acfe9762cf9e6d73baecdcd3fd7dd1fbb2c7 Mon Sep 17 00:00:00 2001 From: Dave Jones <davej@redhat.com> Date: Thu, 2 Sep 2004 00:36:41 -0700 Subject: [PATCH] [PATCH] Fix NULL derefence in OSS MAUI driver. Spotted with the source checker from Coverity.com. Signed-off-by: Dave Jones <davej@redhat.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org> --- sound/oss/maui.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/oss/maui.c b/sound/oss/maui.c index 4f749b5b7e6a..0c0d53e877d9 100644 --- a/sound/oss/maui.c +++ b/sound/oss/maui.c @@ -383,9 +383,8 @@ static int __init probe_maui(struct address_info *hw_config) */ synth = midi_devs[this_dev]->converter; - synth->id = "MAUI"; - if (synth != NULL) { + synth->id = "MAUI"; orig_load_patch = synth->load_patch; synth->load_patch = &maui_load_patch; } else -- 2.30.9