lkml.org 
[lkml]   [2022]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] sunrpc: svc: Remove unnecessary (void*) conversions
Date
The iov_base pointer does not need to cast the type.

Signed-off-by: Li zeming <zeming@nfschina.com>
---
include/linux/sunrpc/svc.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h
index daecb009c05b..4b0eead91c94 100644
--- a/include/linux/sunrpc/svc.h
+++ b/include/linux/sunrpc/svc.h
@@ -222,7 +222,7 @@ static inline __be32 svc_getu32(struct kvec *iov)

static inline void svc_ungetu32(struct kvec *iov)
{
- __be32 *vp = (__be32 *)iov->iov_base;
+ __be32 *vp = iov->iov_base;
iov->iov_base = (void *)(vp - 1);
iov->iov_len += sizeof(*vp);
}
--
2.18.2
\
 
 \ /
  Last update: 2022-11-03 02:36    [W:0.292 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site