]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
Remove superfluous casts
authorBart Van Assche <bvanassche@acm.org>
Tue, 18 Jun 2019 16:16:46 +0000 (09:16 -0700)
committerBart Van Assche <bvanassche@acm.org>
Tue, 18 Jun 2019 20:27:35 +0000 (13:27 -0700)
commite68409e447b205bcc586ec69faa59d373d4ee283
tree687fe672ab72d52087cd9332d5d9451250975e2a
parent0fddb03975c9293787f68bac427a34dc66c78edc
Remove superfluous casts

The le64_to_cpu() definition is as follows:

  #define le64_to_cpu(x) le64toh((__force __u64)(x))

According to the le64toh() man page, the return type of that function
is uint64_t. Hence drop the cast from (uint64_t)le64_to_cpu(x)
expressions. This patch has been generated as follows:

  git ls-tree --name-only -r HEAD |
    while read f; do
      [ -f "$f" ] && sed -i 's/(uint64_t)le64_to_cpu(/le64_to_cpu(/g' "$f"
    done

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
fabrics.c
nvme-print.c
plugins/intel/intel-nvme.c
plugins/seagate/seagate-nvme.c
plugins/wdc/wdc-nvme.c