Skip to content

Commit

Permalink
platform-drivers-x86: dell-laptop: Remove unneeded mutex_init() for b…
Browse files Browse the repository at this point in the history
…uffer_mutex

DEFINE_MUTEX() will automatically initialize buffer_mutex,
no need to call mutex_init() in dell_init().

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
  • Loading branch information
Axel Lin authored and Matthew Garrett committed Aug 5, 2011
1 parent 7b8aca6 commit 2605d75
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/platform/x86/dell-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,6 @@ static int __init dell_init(void)
if (!bufferpage)
goto fail_buffer;
buffer = page_address(bufferpage);
mutex_init(&buffer_mutex);

ret = dell_setup_rfkill();

Expand Down

0 comments on commit 2605d75

Please sign in to comment.