mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-18 21:26:31 +00:00
The patch below fixes the following classes of checkpatch errors:
* ERROR: return is not a function, parentheses are not required
* ERROR: that open brace { should be on the previous line
This patch has been tested by verifying that the newly generated patch still
applies without warnings to the 2.6.25.17 kernel and that the patched kernel
still compiles.
Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@512 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -518,7 +518,7 @@ static inline int test_write_ready(struct iscsi_conn *conn)
|
||||
* No need for write_list protection, in the worst case we will be
|
||||
* restarted again.
|
||||
*/
|
||||
return (!list_empty(&conn->write_list) || conn->write_cmnd);
|
||||
return !list_empty(&conn->write_list) || conn->write_cmnd;
|
||||
}
|
||||
|
||||
static inline void conn_get(struct iscsi_conn *conn)
|
||||
|
||||
@@ -515,7 +515,7 @@ struct iscsi_nop_in_hdr {
|
||||
#define cmnd_ttt(cmnd) cpu_to_be32((cmnd)->pdu.bhs.ttt)
|
||||
#define cmnd_itt(cmnd) cpu_to_be32((cmnd)->pdu.bhs.itt)
|
||||
#define cmnd_opcode(cmnd) ((cmnd)->pdu.bhs.opcode & ISCSI_OPCODE_MASK)
|
||||
#define cmnd_scsicode(cmnd) cmnd_hdr(cmnd)->scb[0]
|
||||
#define cmnd_scsicode(cmnd) (cmnd_hdr((cmnd))->scb[0])
|
||||
|
||||
|
||||
#endif /* __ISCSI_HDR_H__ */
|
||||
|
||||
Reference in New Issue
Block a user