Minor cleanups

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2349 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2010-10-05 18:45:20 +00:00
parent 6f6b0a4acd
commit 2370609897
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -221,7 +221,7 @@ static inline int list_is_last(const struct list_head *list,
/* Dev handler's dev_done() is going to be called */
#define SCST_CMD_STATE_DEV_DONE 11
/* Target driver's xmit_response() is going to be called */
/* Checks before target driver's xmit_response() is called */
#define SCST_CMD_STATE_PRE_XMIT_RESP 12
/* Target driver's xmit_response() is going to be called */
+3 -1
View File
@@ -10,7 +10,7 @@ diff -upkr linux-2.6.35/block/blk-map.c linux-2.6.35/block/blk-map.c
#include <scsi/sg.h> /* for struct sg_iovec */
#include "blk.h"
@@ -271,6 +273,336 @@ int blk_rq_unmap_user(struct bio *bio)
@@ -271,6 +273,338 @@ int blk_rq_unmap_user(struct bio *bio)
}
EXPORT_SYMBOL(blk_rq_unmap_user);
@@ -263,6 +263,8 @@ diff -upkr linux-2.6.35/block/blk-map.c linux-2.6.35/block/blk-map.c
+ }
+ }
+
+ res = 0;
+
+ rq->buffer = NULL;
+out:
+ return res;