diff options
| author | Bruno Randolf <[email protected]> | 2008-09-25 16:45:10 +0200 |
|---|---|---|
| committer | Ralf Baechle <[email protected]> | 2008-09-27 15:45:35 +0100 |
| commit | 19506fc51852e859bb08ab5abbdb8fd02b7392f2 (patch) | |
| tree | 9c6352c3de58feb9651d4488232db81b6ac231c7 /include/linux/stacktrace.h | |
| parent | 6ef190cc92e33565accff6a320f0e7d90480bfe7 (diff) | |
[MIPS] au1000: Make sure GPIO value is zero or one
David Brownell <[email protected]> wrote:
> The problem is that "value" is zero-or-nonzero.
> This code wrongly assumes it's zero-or-one.
> Possible fix: "((!!value) << gpio)".
Signed-off-by: Bruno Randolf <[email protected]>
Signed-off-by: Ralf Baechle <[email protected]>
Diffstat (limited to 'include/linux/stacktrace.h')
0 files changed, 0 insertions, 0 deletions