Skip to content

Unused count in hm2 bspi #4142

@BsAtHome

Description

@BsAtHome

@andypugh You added a variable in the hostmot2 buffered SPI drivers called count using the hal_u32_t * type. This field is never addressed or used in the bspi driver afaics. It may have been the idea to add a pin, but the SPI interface is a rather "internal use only" construct where other modules use it as a transport layer, just like the uart/pktuart. It may therefore be a "leftover" while developing the driver.

Commenting it out and recompiling does not result in any messages, so it does not seem to be addressed anywhere. Can't it be simply removed?

The source is at: https://github.com/LinuxCNC/linuxcnc/blame/e90c66dac743dc0bf9f827f70fab5cdd8898c662/src/hal/drivers/mesa-hostmot2/hostmot2.h#L1338
Added in commit: d82b0eb

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions