diff options
| author | Axel Lin <[email protected]> | 2013-12-02 12:57:33 +0800 |
|---|---|---|
| committer | Sonic Zhang <[email protected]> | 2013-12-06 16:06:51 +0800 |
| commit | 727cbe14b25b492bc9b96ad9d1f5f881d833028e (patch) | |
| tree | 447918578ff843a942c4053229c0e3e033c1969a /scripts/checkpatch.pl | |
| parent | e5cb60a033502ab24fef15fa005835b2e46f90eb (diff) | |
spi: bfin_spi: Remove unnecessary test for bus and pins[bus]
For invalid bus number, current code returns NULL in the default case of
switch-case statements. In additional, pins[bus] is always not NULL because
it is the address of specific row of the two-dimensional array.
Thus this patch removes these unnecessary test.
Signed-off-by: Axel Lin <[email protected]>
Acked-by: Scott Jiang <[email protected]>
Signed-off-by: Sonic Zhang <[email protected]>
Diffstat (limited to 'scripts/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions
