• Dan Murphy's avatar
    can: m_can: Fix checkpatch issues on existing code · 69652195
    Dan Murphy authored
    Fix checkpatch issues found during the m_can framework creation, before
    framework creation in the following patches.
    
    Fix these 4 check issues:
    CHECK: Unnecessary parentheses around 'cdev->can.state != CAN_STATE_ERROR_WARNING'
    	if (psr & PSR_EW &&
    	    (cdev->can.state != CAN_STATE_ERROR_WARNING)) {
    
    CHECK: Unnecessary parentheses around 'cdev->can.state != CAN_STATE_ERROR_PASSIVE'
    	if ((psr & PSR_EP) &&
    	    (cdev->can.state != CAN_STATE_ERROR_PASSIVE)) {
    
    CHECK: Unnecessary parentheses around 'cdev->can.state != CAN_STATE_BUS_OFF'
    	if ((psr & PSR_BO) &&
    	    (cdev->can.state != CAN_STATE_BUS_OFF)) {
    
    CHECK: Unnecessary parentheses around 'priv->version <= 31'
    	if ((priv->version <= 31) && (irqstatus & IR_MRAF) &&
    	    (m_can_read(priv, M_CAN_ECR) & ECR_RP)) {
    Signed-off-by: default avatarDan Murphy <dmurphy@ti.com>
    Acked-by: default avatarFaiz Abbas <faiz_abbas@ti.com>
    Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
    69652195
m_can.c 45.1 KB