]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
fpga: zynqpl: Correct the variable names in do_zynq_decrypt_image
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Tue, 4 Mar 2014 09:47:21 +0000 (15:17 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 4 Mar 2014 11:42:18 +0000 (12:42 +0100)
Assign the variables as per its name while parsing the zynq_aes
command.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/fpga/zynqpl.c

index 730c9dfe80754a78e6f3b57b8c52a2a5994b26ea..99ccfc43889dd18e194b101bf9b58054333b1931 100644 (file)
@@ -493,17 +493,17 @@ static int do_zynq_decrypt_image(cmd_tbl_t *cmdtp, int flag, int argc,
        srcaddr = simple_strtoul(argv[1], &endp, 16);
        if (*argv[1] == 0 || *endp != 0)
                return -1;
-       dstaddr = simple_strtoul(argv[2], &endp, 16);
+       srclen = simple_strtoul(argv[2], &endp, 16);
        if (*argv[2] == 0 || *endp != 0)
                return -1;
-       srclen = simple_strtoul(argv[3], &endp, 16);
+       dstaddr = simple_strtoul(argv[3], &endp, 16);
        if (*argv[3] == 0 || *endp != 0)
                return -1;
        dstlen = simple_strtoul(argv[4], &endp, 16);
        if (*argv[4] == 0 || *endp != 0)
                return -1;
 
-       status = zynq_decrypt_load(srcaddr, dstaddr, srclen, dstlen);
+       status = zynq_decrypt_load(srcaddr, srclen, dstaddr, dstlen);
        if (status != 0)
                return -1;