From: Tomas Winkler Subject: [PATCH 1/1] tpm/tpm-dev: fix broken style in copy_from_user Date: Sun, 11 Sep 2016 22:22:10 +0300 Message-ID: <1473621730-23125-1-git-send-email-tomas.winkler@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tpmdd-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: tpmdd-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, Jason Gunthorpe , Jarkko Sakkinen List-Id: tpmdd-devel@lists.sourceforge.net Straighten unneeded line brake and drop useless cast to void. Signed-off-by: Tomas Winkler --- 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 ------------------------------------------------------------------------------