Commit a799cb77 authored by Nick Black' via open-iscsi's avatar Nick Black' via open-iscsi Committed by Christoph Hellwig

iscsi: kill redundant casts

Remove two redundant casts from char * to char *.
Signed-off-by: default avatarNick Black <nlb@google.com>
Signed-off-by: default avatarMike Christie <michaelc@cs.wisc.edu>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 16acf5d7
...@@ -3059,7 +3059,7 @@ iscsi_get_chap(struct iscsi_transport *transport, struct nlmsghdr *nlh) ...@@ -3059,7 +3059,7 @@ iscsi_get_chap(struct iscsi_transport *transport, struct nlmsghdr *nlh)
evchap->u.get_chap.host_no = ev->u.get_chap.host_no; evchap->u.get_chap.host_no = ev->u.get_chap.host_no;
evchap->u.get_chap.chap_tbl_idx = ev->u.get_chap.chap_tbl_idx; evchap->u.get_chap.chap_tbl_idx = ev->u.get_chap.chap_tbl_idx;
evchap->u.get_chap.num_entries = ev->u.get_chap.num_entries; evchap->u.get_chap.num_entries = ev->u.get_chap.num_entries;
buf = (char *) ((char *)evchap + sizeof(*evchap)); buf = (char *)evchap + sizeof(*evchap);
memset(buf, 0, chap_buf_size); memset(buf, 0, chap_buf_size);
err = transport->get_chap(shost, ev->u.get_chap.chap_tbl_idx, err = transport->get_chap(shost, ev->u.get_chap.chap_tbl_idx,
...@@ -3463,7 +3463,7 @@ iscsi_get_host_stats(struct iscsi_transport *transport, struct nlmsghdr *nlh) ...@@ -3463,7 +3463,7 @@ iscsi_get_host_stats(struct iscsi_transport *transport, struct nlmsghdr *nlh)
evhost_stats->type = nlh->nlmsg_type; evhost_stats->type = nlh->nlmsg_type;
evhost_stats->u.get_host_stats.host_no = evhost_stats->u.get_host_stats.host_no =
ev->u.get_host_stats.host_no; ev->u.get_host_stats.host_no;
buf = (char *)((char *)evhost_stats + sizeof(*evhost_stats)); buf = (char *)evhost_stats + sizeof(*evhost_stats);
memset(buf, 0, host_stats_size); memset(buf, 0, host_stats_size);
err = transport->get_host_stats(shost, buf, host_stats_size); err = transport->get_host_stats(shost, buf, host_stats_size);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment