fix: scsi: fixed scsi_write error handling

	- Before, when scsi_write failed to write a block it
	  returned wrong number of successful writes, that
	  was caused by using a wrong variable in calculating
	  the return value.
	- fixed the logic that calculates the return value
	  (the number of successful writes),
	  and don't count the last failed write operation
	  as a successful one.

Change-Id: I0c7dcebc861ceb3cd08ef530a658dab3011edc80
Signed-off-by: Bassel Saba <basselsa@marvell.com>
Reviewed-on: http://vgitil04.il.marvell.com:8080/18220
Tested-by: Star_Automation <star@marvell.com>
Reviewed-by: Omri Itach <omrii@marvell.com>
1 file changed