Skip to content

Commit

Permalink
spi/topcliff: Fix uninitialized variable defect
Browse files Browse the repository at this point in the history
This patch fixes the following build error introduced by commit
65308c4, "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: Grant Likely <grant.likely@secretlab.ca>
  • Loading branch information
Grant Likely committed Oct 14, 2010
1 parent f3016fa commit 8e41b52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spi_topcliff_pch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 8e41b52

Please sign in to comment.