[dm-devel] [PATCH 4/7] Remove mpath_reverse_8bytes_order()
Bart Van Assche
bart.vanassche at sandisk.com
Wed May 17 15:43:06 UTC 2017
Since this function is not used, remove it.
Signed-off-by: Bart Van Assche <bart.vanassche at sandisk.com>
---
libmpathpersist/mpath_pr_ioctl.c | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/libmpathpersist/mpath_pr_ioctl.c b/libmpathpersist/mpath_pr_ioctl.c
index 31b2fe6d..29df8c6f 100644
--- a/libmpathpersist/mpath_pr_ioctl.c
+++ b/libmpathpersist/mpath_pr_ioctl.c
@@ -502,21 +502,6 @@ void mpath_reverse_uint32_byteorder(uint32_t *num)
*num = ((byte0 << 24) | (byte1 << 16) | (byte2 << 8) | (byte3 << 0));
}
-void mpath_reverse_8bytes_order(char * var)
-{
- char byte[8];
-
- int i;
- for(i=0 ; i < 8 ; i++ )
- {
- byte[i] = var[i];
- }
- for(i=0 ; i < 8 ; i++ )
- {
- var[7 - i] = byte[i];
- }
-}
-
void
dumpHex(const char* str, int len, int log)
{
--
2.12.2
More information about the dm-devel
mailing list