block: Deletion of checks before three function calls
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | block-cciss: Deletion of an unnecessary check before the function call "put_disk"drivers/ | +1 | 0 replies | |
| 2/3 | block-z2ram: Delete an unnecessary check before the function call "kfree"drivers/ | +1 | 0 replies | |
| 3/3 | block: Deletion of checks before the function call "iounmap"drivers/ drivers/ drivers/ | +9 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] block: Deletion of checks before three function calls
From: Markus Elfring <[email protected]>
Date: Sun, 18 Jan 2015 14:50:06 +0100
Functions which release a system resource are occasionally documented in the way that they tolerate the passing of a null pointer for example. I do not see a need because of this fact that a function caller repeats a corresponding check.
Markus Elfring (3):
cciss: Deletion of an unnecessary check before the function call "put_disk"
z2ram: Delete an unnecessary check before the function call "kfree" Deletion of checks before the function call "iounmap"
drivers/block/cciss.c | 18 ++++++------------ drivers/block/mg_disk.c | 3 +-- drivers/block/skd_main.c | 6 ++---- 3 files changed, 9 insertions(+), 18 deletions(-)
Signature · 1 line
2.2.2