diff options
Diffstat (limited to 'it85spi.c')
-rw-r--r-- | it85spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -341,7 +341,7 @@ int it85xx_spi_init(struct superio s) (unsigned int)base); #endif - data = calloc(1, sizeof(struct it85spi_data)); + data = calloc(1, sizeof(*data)); if (!data) { msg_perr("Unable to allocate space for extra SPI master data.\n"); return SPI_GENERIC_ERROR; |