projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
389fe98
)
Staging: rts_pstor: redundant null check before kfree()
author
Alexander Beregalov
<a.beregalov@gmail.com>
Sat, 26 Mar 2011 17:18:13 +0000
(20:18 +0300)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Wed, 20 Apr 2011 20:45:58 +0000
(13:45 -0700)
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rts_pstor/ms.c
patch
|
blob
|
history
diff --git
a/drivers/staging/rts_pstor/ms.c
b/drivers/staging/rts_pstor/ms.c
index
9975a59
..
2fd2932
100644
(file)
--- a/
drivers/staging/rts_pstor/ms.c
+++ b/
drivers/staging/rts_pstor/ms.c
@@
-3816,9
+3816,7
@@
int mg_get_local_EKB(struct scsi_cmnd *srb, struct rtsx_chip *chip)
rtsx_stor_set_xfer_buf(buf, bufflen, srb);
GetEKBFinish:
- if (buf) {
- kfree(buf);
- }
+ kfree(buf);
return retval;
}
@@
-4054,9
+4052,7
@@
int mg_get_ICV(struct scsi_cmnd *srb, struct rtsx_chip *chip)
rtsx_stor_set_xfer_buf(buf, bufflen, srb);
GetICVFinish:
- if (buf) {
- kfree(buf);
- }
+ kfree(buf);
return retval;
}
@@
-4155,9
+4151,7
@@
int mg_set_ICV(struct scsi_cmnd *srb, struct rtsx_chip *chip)
#endif
SetICVFinish:
- if (buf) {
- kfree(buf);
- }
+ kfree(buf);
return retval;
}