Commit 6635ffb
committed
input: touchscreen: atmel_mxt_ts: fix smatch warnings
Fixes smatch warnings for :
drivers/input/touchscreen/atmel_mxt_ts.c:427 mxt_debug_msg_enable() warn: inconsistent returns 'mutex:&data->debug_msg_lock'.
Locked on: line 422
Unlocked on: line 415
drivers/input/touchscreen/atmel_mxt_ts.c:471 mxt_debug_msg_add() warn: inconsistent returns 'mutex:&data->debug_msg_lock'.
Locked on: line 455
Unlocked on: line 471
drivers/input/touchscreen/atmel_mxt_ts.c:1496 mxt_interrupt() error: we previously assumed 'data->flash' could be null (see line 1493)
Fixes "5a23661" (atmel_mxt_ts.c: move to current github.com/atmel-maxtouch)
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>1 parent 5a23661 commit 6635ffb
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
421 | | - | |
| 421 | + | |
| 422 | + | |
422 | 423 | | |
| 424 | + | |
423 | 425 | | |
424 | 426 | | |
425 | 427 | | |
| |||
451 | 453 | | |
452 | 454 | | |
453 | 455 | | |
| 456 | + | |
454 | 457 | | |
455 | 458 | | |
456 | 459 | | |
| |||
685 | 688 | | |
686 | 689 | | |
687 | 690 | | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
688 | 694 | | |
689 | 695 | | |
690 | 696 | | |
| |||
0 commit comments