ptp: ptp_clockmatrix: Simplify code - remove unnecessary `err` variable.
authorVincent Cheng <vincent.cheng.xh@renesas.com>
Wed, 17 Feb 2021 05:42:17 +0000 (00:42 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Feb 2021 21:49:26 +0000 (13:49 -0800)
Code clean-up.

Signed-off-by: Vincent Cheng <vincent.cheng.xh@renesas.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_clockmatrix.c

index 241bff049b7717808ba0f2a16b0725d04b4824f6..dc42c363021c4ff5631170f20ab26bf2ae5c8131 100644 (file)
@@ -282,12 +282,9 @@ static int idtcm_write(struct idtcm *idtcm,
 
 static int clear_boot_status(struct idtcm *idtcm)
 {
-       int err;
        u8 buf[4] = {0};
 
-       err = idtcm_write(idtcm, GENERAL_STATUS, BOOT_STATUS, buf, sizeof(buf));
-
-       return err;
+       return idtcm_write(idtcm, GENERAL_STATUS, BOOT_STATUS, buf, sizeof(buf));
 }
 
 static int read_boot_status(struct idtcm *idtcm, u32 *status)