]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
soc: fsl: qman: convert to use be32_add_cpu()
authorLiu Shixin <liushixin2@huawei.com>
Mon, 14 Sep 2020 04:17:52 +0000 (12:17 +0800)
committerLi Yang <leoyang.li@nxp.com>
Tue, 22 Sep 2020 23:16:15 +0000 (18:16 -0500)
Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
drivers/soc/fsl/qbman/qman_test_api.c

index 2895d062cf513bfbca42c2cf85cbb46b420a9b88..7066b2f1467cc40ebd1184f77d280985b5a0f543 100644 (file)
@@ -86,7 +86,7 @@ static void fd_inc(struct qm_fd *fd)
        len--;
        qm_fd_set_param(fd, fmt, off, len);
 
-       fd->cmd = cpu_to_be32(be32_to_cpu(fd->cmd) + 1);
+       be32_add_cpu(&fd->cmd, 1);
 }
 
 /* The only part of the 'fd' we can't memcmp() is the ppid */