tpmdd-devel.lists.sourceforge.net archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] tpm/tpm-dev: fix broken style in copy_from_user
@ 2016-09-11 19:22 Tomas Winkler
       [not found] ` <1473621730-23125-1-git-send-email-tomas.winkler-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Tomas Winkler @ 2016-09-11 19:22 UTC (permalink / raw)
  To: tpmdd-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Jason Gunthorpe,
	Jarkko Sakkinen

Straighten unneeded line brake and drop useless cast to void.

Signed-off-by: Tomas Winkler <tomas.winkler-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
---
 drivers/char/tpm/tpm-dev.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/char/tpm/tpm-dev.c b/drivers/char/tpm/tpm-dev.c
index 912ad30be585..9782df406345 100644
--- a/drivers/char/tpm/tpm-dev.c
+++ b/drivers/char/tpm/tpm-dev.c
@@ -130,8 +130,7 @@ static ssize_t tpm_write(struct file *file, const char __user *buf,
 
 	mutex_lock(&priv->buffer_mutex);
 
-	if (copy_from_user
-	    (priv->data_buffer, (void __user *) buf, in_size)) {
+	if (copy_from_user(priv->data_buffer, buf, in_size)) {
 		mutex_unlock(&priv->buffer_mutex);
 		return -EFAULT;
 	}
-- 
2.7.4


------------------------------------------------------------------------------

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-09-12 18:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-11 19:22 [PATCH 1/1] tpm/tpm-dev: fix broken style in copy_from_user Tomas Winkler
     [not found] ` <1473621730-23125-1-git-send-email-tomas.winkler-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2016-09-11 20:38   ` Jarkko Sakkinen
     [not found]     ` <20160911203849.GA26511-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2016-09-12  4:39       ` Peter Huewe
     [not found]         ` <E2960FB9-598A-4289-9486-9B8AFD054E95-Mmb7MZpHnFY@public.gmane.org>
2016-09-12  7:56           ` Jarkko Sakkinen
     [not found]             ` <20160912075637.GB5094-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2016-09-12 16:06               ` Peter Huewe
     [not found]                 ` <3113B445-E63D-45C3-8B6A-DFDB1B5DDC7D-Mmb7MZpHnFY@public.gmane.org>
2016-09-12 18:42                   ` Jarkko Sakkinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).