提交 1e4dcd22 编写于 作者: Y Yoann Padioleau 提交者: Tony Luck

[IA64] Compare pointer against NULL, not '0'

When comparing a pointer, it's clearer to compare it to NULL than to 0.
Signed-off-by: NYoann Padioleau <padator@wanadoo.fr>
Signed-off-by: NTony Luck <tony.luck@intel.com>
上级 7a6c8135
......@@ -101,7 +101,7 @@ simscsi_interrupt (unsigned long val)
{
struct scsi_cmnd *sc;
while ((sc = queue[rd].sc) != 0) {
while ((sc = queue[rd].sc) != NULL) {
atomic_dec(&num_reqs);
queue[rd].sc = NULL;
if (DBG)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册