mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-07 22:42:04 +00:00
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>
This commit is contained in:
parent
fcfd37573a
commit
fde3b3a706
@ -282,12 +282,9 @@ static int idtcm_write(struct idtcm *idtcm,
|
|||||||
|
|
||||||
static int clear_boot_status(struct idtcm *idtcm)
|
static int clear_boot_status(struct idtcm *idtcm)
|
||||||
{
|
{
|
||||||
int err;
|
|
||||||
u8 buf[4] = {0};
|
u8 buf[4] = {0};
|
||||||
|
|
||||||
err = idtcm_write(idtcm, GENERAL_STATUS, BOOT_STATUS, buf, sizeof(buf));
|
return idtcm_write(idtcm, GENERAL_STATUS, BOOT_STATUS, buf, sizeof(buf));
|
||||||
|
|
||||||
return err;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int read_boot_status(struct idtcm *idtcm, u32 *status)
|
static int read_boot_status(struct idtcm *idtcm, u32 *status)
|
||||||
|
Loading…
Reference in New Issue
Block a user