Commit 8e41b527 authored by Grant Likely's avatar Grant Likely

spi/topcliff: Fix uninitialized variable defect

This patch fixes the following build error introduced by commit
65308c46, "spi/topcliff: cleanup for style and conciseness".

drivers/spi/spi_topcliff_pch.c: In function 'pch_spi_process_messages':
drivers/spi/spi_topcliff_pch.c:752: warning: 'data' is used uninitialized in
+this function
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent f3016fa5
......@@ -749,8 +749,8 @@ static void pch_spi_process_messages(struct work_struct *pwork)
struct pch_spi_data *data;
int bpw;
dev_dbg(&data->master->dev, "%s data initialized\n", __func__);
data = container_of(pwork, struct pch_spi_data, work);
dev_dbg(&data->master->dev, "%s data initialized\n", __func__);
spin_lock(&data->lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment