Loading drivers/char/diag/diagfwd_cntl.c +5 −2 Original line number Diff line number Diff line Loading @@ -1146,9 +1146,12 @@ int diag_send_buffering_tx_mode_pkt(uint8_t peripheral, int err = 0; struct diag_ctrl_peripheral_tx_mode ctrl_pkt; if (!peripheral || !params) if (!params) return -EIO; if (peripheral >= NUM_PERIPHERALS) return -EINVAL; if (!driver->feature[peripheral].peripheral_buffering) { pr_debug("diag: In %s, peripheral %d doesn't support buffering\n", __func__, peripheral); Loading Loading @@ -1198,7 +1201,7 @@ int diag_send_buffering_wm_values(uint8_t peripheral, return -EIO; if (peripheral >= NUM_PERIPHERALS) return -EIO; return -EINVAL; if (!driver->feature[peripheral].peripheral_buffering) { pr_debug("diag: In %s, peripheral %d doesn't support buffering\n", Loading Loading
drivers/char/diag/diagfwd_cntl.c +5 −2 Original line number Diff line number Diff line Loading @@ -1146,9 +1146,12 @@ int diag_send_buffering_tx_mode_pkt(uint8_t peripheral, int err = 0; struct diag_ctrl_peripheral_tx_mode ctrl_pkt; if (!peripheral || !params) if (!params) return -EIO; if (peripheral >= NUM_PERIPHERALS) return -EINVAL; if (!driver->feature[peripheral].peripheral_buffering) { pr_debug("diag: In %s, peripheral %d doesn't support buffering\n", __func__, peripheral); Loading Loading @@ -1198,7 +1201,7 @@ int diag_send_buffering_wm_values(uint8_t peripheral, return -EIO; if (peripheral >= NUM_PERIPHERALS) return -EIO; return -EINVAL; if (!driver->feature[peripheral].peripheral_buffering) { pr_debug("diag: In %s, peripheral %d doesn't support buffering\n", Loading