summaryrefslogtreecommitdiffstats
path: root/drivers/ptp
diff options
context:
space:
mode:
authorVincent Cheng <vincent.cheng.xh@renesas.com>2021-02-17 00:42:17 -0500
committerDavid S. Miller <davem@davemloft.net>2021-02-17 13:49:26 -0800
commitfde3b3a7069e380f3a8b74e77b9eff15b7f8c878 (patch)
tree3a26add6c6f3a017b1862802ffb324a7504f194e /drivers/ptp
parentfcfd37573a09f1998bc58a712be432aa7eae7bc2 (diff)
downloadlinux-fde3b3a7069e380f3a8b74e77b9eff15b7f8c878.tar.bz2
ptp: ptp_clockmatrix: Simplify code - remove unnecessary `err` variable.
Code clean-up. Signed-off-by: Vincent Cheng <vincent.cheng.xh@renesas.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ptp')
-rw-r--r--drivers/ptp/ptp_clockmatrix.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/ptp/ptp_clockmatrix.c b/drivers/ptp/ptp_clockmatrix.c
index 241bff049b77..dc42c363021c 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)