]> git.sur5r.net Git - u-boot/commitdiff
x86: ivybridge: Use 'ret' instead of 'rcode'
authorSimon Glass <sjg@chromium.org>
Sun, 18 Oct 2015 21:55:32 +0000 (15:55 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 21 Oct 2015 13:46:50 +0000 (07:46 -0600)
For consistency, use 'ret' to handle a return value.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/ivybridge/sdram.c

index fc66a3c3a5990b64fba495c3ea3bf8356aa7d48f..26e2e5b6f2d144c7d7a4f932f4e640faf9bff6b6 100644 (file)
@@ -93,11 +93,11 @@ static int read_seed_from_cmos(struct pei_data *pei_data)
 {
        u16 c1, c2, checksum, seed_checksum;
        struct udevice *dev;
-       int rcode = 0;
+       int ret = 0;
 
-       rcode = uclass_get_device(UCLASS_RTC, 0, &dev);
-       if (rcode) {
-               debug("Cannot find RTC: err=%d\n", rcode);
+       ret = uclass_get_device(UCLASS_RTC, 0, &dev);
+       if (ret) {
+               debug("Cannot find RTC: err=%d\n", ret);
                return -ENODEV;
        }
 
@@ -170,11 +170,11 @@ static int write_seeds_to_cmos(struct pei_data *pei_data)
 {
        u16 c1, c2, checksum;
        struct udevice *dev;
-       int rcode = 0;
+       int ret = 0;
 
-       rcode = uclass_get_device(UCLASS_RTC, 0, &dev);
-       if (rcode) {
-               debug("Cannot find RTC: err=%d\n", rcode);
+       ret = uclass_get_device(UCLASS_RTC, 0, &dev);
+       if (ret) {
+               debug("Cannot find RTC: err=%d\n", ret);
                return -ENODEV;
        }