mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "André Lopes" <andre.neo.net@gmail.com>
To: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org,
	askulysh@image.kiev.ua
Subject: [PATCH] oss: Remove void casts
Date: Fri, 22 May 2009 14:27:45 +0100	[thread overview]
Message-ID: <5c43c2d40905220627g4036fd80n6f0ef8469e48aa1f@mail.gmail.com> (raw)

This trivial patch just remove void cats from sound/oss/sh_dac_audio.c

Signed-off-by: André Lopes <andre.neo.net@gmail.com>

---
 sound/oss/sh_dac_audio.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/sound/oss/sh_dac_audio.c b/sound/oss/sh_dac_audio.c
index 78cfb66..7247ea1 100755
--- a/sound/oss/sh_dac_audio.c
+++ b/sound/oss/sh_dac_audio.c
@@ -200,21 +200,21 @@ static ssize_t dac_audio_write(struct file
*file, const char *buf, size_t count,
 	if (count > free)
 		count = free;
 	if (buffer_begin > buffer_end) {
-		if (copy_from_user((void *)buffer_end, buf, count))
+		if (copy_from_user(buffer_end, buf, count))
 			return -EFAULT;

 		buffer_end += count;
 	} else {
 		nbytes = data_buffer + BUFFER_SIZE - buffer_end;
 		if (nbytes > count) {
-			if (copy_from_user((void *)buffer_end, buf, count))
+			if (copy_from_user(buffer_end, buf, count))
 				return -EFAULT;
 			buffer_end += count;
 		} else {
-			if (copy_from_user((void *)buffer_end, buf, nbytes))
+			if (copy_from_user(buffer_end, buf, nbytes))
 				return -EFAULT;
 			if (copy_from_user
-			    ((void *)data_buffer, buf + nbytes, count - nbytes))
+			    (data_buffer, buf + nbytes, count - nbytes))
 				return -EFAULT;
 			buffer_end = data_buffer + count - nbytes;
 		}
@@ -322,7 +322,7 @@ static void __exit dac_audio_exit(void)
 	free_irq(TIMER1_IRQ, 0);

 	unregister_sound_dsp(device_major);
-	kfree((void *)data_buffer);
+	kfree(data_buffer);
 }

 module_init(dac_audio_init);
-- 
1.5.6.5

             reply	other threads:[~2009-05-22 13:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-22 13:27 André Lopes [this message]
2009-05-26  0:20 ` Mark Asselstine

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5c43c2d40905220627g4036fd80n6f0ef8469e48aa1f@mail.gmail.com \
    --to=andre.neo.net@gmail.com \
    --cc=askulysh@image.kiev.ua \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®