Skip to content

Commit

Permalink
Fixed an incorrect check.
Browse files Browse the repository at this point in the history
The local variable was being used, instead of checking the proper field
for a `NULL` value. This closes #23.
  • Loading branch information
bperez77 committed Aug 4, 2017
1 parent 4642323 commit 4081f6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver/axidma_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ static int axidma_request_channels(struct platform_device *pdev,
{
chan = &dev->channels[i];
chan->chan = dma_request_slave_channel(&pdev->dev, chan->name);
if (chan == NULL) {
if (chan->chan == NULL) {
axidma_err("Unable to get slave channel %d: %s.\n", i, chan->name);
rc = -ENODEV;
goto release_channels;
Expand Down

0 comments on commit 4081f6b

Please sign in to comment.