mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-28 17:30:18 +00:00
iscsi-scst/usr: Improve coding style
This patch only affects code formatting and does not change any functionality. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8356 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -338,7 +338,7 @@ int kernel_params_set(u32 tid, u64 sid, int type, u32 partial,
|
||||
|
||||
if ((err = ioctl(ctrl_fd, ISCSI_PARAM_SET, &info)) < 0) {
|
||||
err = -errno;
|
||||
log_error("Can't set session params for session 0x%" PRIx64
|
||||
log_error("Can't set session params for session 0x%" PRIx64
|
||||
" (tid %u, type %d, partial %d, err %d): %s\n", sid,
|
||||
tid, type, partial, err, strerror(errno));
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ static inline int list_length_is_one(const struct __qelem *head)
|
||||
|
||||
#define container_of(ptr, type, member) ({ \
|
||||
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
|
||||
(type *)( (char *)__mptr - offsetof(type,member) );})
|
||||
(type *)((char *)__mptr - offsetof(type, member)); })
|
||||
|
||||
#define list_entry(ptr, type, member) \
|
||||
container_of(ptr, type, member)
|
||||
|
||||
@@ -355,7 +355,8 @@ int target_del(u32 tid, u32 cookie)
|
||||
|
||||
while (1) {
|
||||
/* We might need to handle session(s) removal event(s) from the kernel */
|
||||
while (handle_iscsi_events(nl_fd, false) == 0);
|
||||
while (handle_iscsi_events(nl_fd, false) == 0)
|
||||
;
|
||||
|
||||
/* Someone else may have already freed the target object by now. */
|
||||
target = target_find_by_id(tid);
|
||||
|
||||
Reference in New Issue
Block a user