Message ID | 1613540538-23792-7-git-send-email-vincent.cheng.xh@renesas.com |
---|---|
State | New |
Headers | show |
Series | [v3,net-next,1/7] ptp: ptp_clockmatrix: Add wait_for_sys_apll_dpll_lock. | expand |
diff --git a/drivers/ptp/ptp_clockmatrix.c b/drivers/ptp/ptp_clockmatrix.c index 241bff0..dc42c36 100644 --- a/drivers/ptp/ptp_clockmatrix.c +++ b/drivers/ptp/ptp_clockmatrix.c @@ -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)