From 8bca8545a201434af138907ef9d6bba52a031078 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 6 Nov 2016 21:51:53 +1100 Subject: [PATCH] HAL_PX4: removed unused devname field in SPIDevice --- libraries/AP_HAL_PX4/SPIDevice.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/libraries/AP_HAL_PX4/SPIDevice.h b/libraries/AP_HAL_PX4/SPIDevice.h index f1ae9c290c..57556a0403 100644 --- a/libraries/AP_HAL_PX4/SPIDevice.h +++ b/libraries/AP_HAL_PX4/SPIDevice.h @@ -41,11 +41,9 @@ struct SPIDesc { : name(_name), bus(_bus), device(_device), mode(_mode), lowspeed(_lowspeed), highspeed(_highspeed) { - snprintf(devname, sizeof(devname), "/dev/%s", name); } const char *name; - char devname[20]; uint8_t bus; enum spi_dev_e device; enum spi_mode_e mode;