mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: Jiri Kosina <trivial@kernel.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>,
	Heiko Carstens <heiko.carstens@de.ibm.com>,
	linux390@de.ibm.com, linux-s390@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH 04/13] drivers/s390: Remove unnecessary casts of private_data
Date: Sat,  4 Sep 2010 18:52:45 -0700	[thread overview]
Message-ID: <ffd65b5efc206c3bb180addeeab41a26f15991a7.1283650107.git.joe@perches.com> (raw)
In-Reply-To: <cover.1283650107.git.joe@perches.com>

Signed-off-by: Joe Perches <joe@perches.com>
---
 drivers/s390/char/vmcp.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/s390/char/vmcp.c b/drivers/s390/char/vmcp.c
index 04e532e..19a14d9 100644
--- a/drivers/s390/char/vmcp.c
+++ b/drivers/s390/char/vmcp.c
@@ -47,7 +47,7 @@ static int vmcp_release(struct inode *inode, struct file *file)
 {
 	struct vmcp_session *session;
 
-	session = (struct vmcp_session *)file->private_data;
+	session = file->private_data;
 	file->private_data = NULL;
 	free_pages((unsigned long)session->response, get_order(session->bufsize));
 	kfree(session);
@@ -94,7 +94,7 @@ vmcp_write(struct file *file, const char __user *buff, size_t count,
 		return -EFAULT;
 	}
 	cmd[count] = '\0';
-	session = (struct vmcp_session *)file->private_data;
+	session = file->private_data;
 	if (mutex_lock_interruptible(&session->mutex)) {
 		kfree(cmd);
 		return -ERESTARTSYS;
@@ -136,7 +136,7 @@ static long vmcp_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
 	int __user *argp;
 	int temp;
 
-	session = (struct vmcp_session *)file->private_data;
+	session = file->private_data;
 	if (is_compat_task())
 		argp = compat_ptr(arg);
 	else
-- 
1.7.2.19.g9a302


  parent reply	other threads:[~2010-09-05  1:55 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <cover.1283650107.git.joe@perches.com>
2010-09-05  1:52 ` [PATCH 01/13] drivers/gpu/drm: " Joe Perches
2010-09-23 11:36   ` Jiri Kosina
2010-09-05  1:52 ` [PATCH 02/13] drivers/infiniband: " Joe Perches
2010-09-07 18:24   ` Ralph Campbell
2010-09-23 11:38     ` Jiri Kosina
2010-10-06 21:44   ` Roland Dreier
2010-09-05  1:52 ` [PATCH 03/13] drivers/net/wireless/iwlwifi: " Joe Perches
2010-09-05  1:52 ` Joe Perches [this message]
2010-09-23 11:42   ` [PATCH 04/13] drivers/s390: " Jiri Kosina
2010-09-05  1:52 ` [PATCH 05/13] drivers/scsi: " Joe Perches
2010-09-23 11:45   ` Jiri Kosina
2010-09-05  1:52 ` [PATCH 06/13] drivers/staging/lirc: " Joe Perches
2010-09-05  1:52 ` [PATCH 07/13] fs/ecryptfs: " Joe Perches
2010-09-23 11:31   ` Jiri Kosina
2010-09-05  1:52 ` [PATCH 08/13] fs/seq_file.c: " Joe Perches
2010-09-23 11:29   ` Jiri Kosina
2010-09-05  1:52 ` [PATCH 09/13] kernel/pm_qos_params.c: " Joe Perches
2010-09-23 11:34   ` Jiri Kosina
2010-09-05  1:52 ` [PATCH 10/13] kernel/trace: " Joe Perches
2010-09-23 11:37   ` Jiri Kosina
2010-09-05  1:52 ` [PATCH 11/13] net/ipv4: " Joe Perches
2010-09-07  1:30   ` David Miller
2010-09-07  1:47     ` David Miller
2010-09-07  5:01       ` [PATCH net-next] include/net/raw.h: Convert raw_seq_private macro to inline Joe Perches
2010-09-07 15:37         ` Nick Bowler
2010-09-07 15:55           ` [PATCH V2 " Joe Perches
2010-09-08 20:42             ` David Miller
2010-09-05  1:52 ` [PATCH 12/13] net/sunrpc/rpc_pipe.c: Remove unnecessary casts of private_data Joe Perches
2010-09-23 11:40   ` Jiri Kosina
2010-09-05  1:52 ` [PATCH 13/13] sound: " Joe Perches
2010-09-07  6:10   ` Takashi Iwai

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=ffd65b5efc206c3bb180addeeab41a26f15991a7.1283650107.git.joe@perches.com \
    --to=joe@perches.com \
    --cc=heiko.carstens@de.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=linux390@de.ibm.com \
    --cc=schwidefsky@de.ibm.com \
    --cc=trivial@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®