diff options
| author | Brian Norris <[email protected]> | 2016-01-29 19:25:31 +0000 |
|---|---|---|
| committer | Brian Norris <[email protected]> | 2016-03-08 02:01:54 +0000 |
| commit | 4c0dba447ef4a97dfbae6e876312e952667eddc4 (patch) | |
| tree | 631c6a9caa023a440db842ffbd7562adaaff6aa6 /net/switchdev/switchdev.c | |
| parent | mtd: spi-nor: wait for SR_WIP to clear on initial unlock (diff) | |
| download | kernel-4c0dba447ef4a97dfbae6e876312e952667eddc4.tar.gz kernel-4c0dba447ef4a97dfbae6e876312e952667eddc4.zip | |
mtd: spi-nor: silently drop lock/unlock for already locked/unlocked region
If, for instance, the entire flash is already unlocked and I try to
mtd_unlock() the entire device, I don't expect to see an EINVAL error.
It should just silently succeed. Ditto for mtd_lock().
Signed-off-by: Brian Norris <[email protected]>
Reviewed-by: Ezequiel Garcia <[email protected]>
Tested-by: Ezequiel Garcia <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
