[PATCH] cifs: s/0/NULL/ in pointer context
Alexey Dobriyan
adobriyan at mail.ru
Sun Jan 9 09:38:15 GMT 2005
Signed-off-by: Alexey Dobriyan <adobriyan at mail.ru>
Index: linux-2.6.10-bk11-warnings/fs/cifs/cifssmb.c
===================================================================
--- linux-2.6.10-bk11-warnings/fs/cifs/cifssmb.c (revision 10)
+++ linux-2.6.10-bk11-warnings/fs/cifs/cifssmb.c (revision 11)
@@ -154,7 +154,7 @@
return rc;
*request_buf = cifs_small_buf_get();
- if (*request_buf == 0) {
+ if (*request_buf == NULL) {
/* BB should we add a retry in here if not a writepage? */
return -ENOMEM;
}
@@ -246,7 +246,7 @@
return rc;
*request_buf = cifs_buf_get();
- if (*request_buf == 0) {
+ if (*request_buf == NULL) {
/* BB should we add a retry in here if not a writepage? */
return -ENOMEM;
}
@@ -448,7 +448,7 @@
return 0;
}
- if((tcon->ses == 0) || (tcon->ses->server == 0)) {
+ if((tcon->ses == NULL) || (tcon->ses->server == NULL)) {
up(&tcon->tconSem);
return -EIO;
}
Index: linux-2.6.10-bk11-warnings/fs/cifs/asn1.c
===================================================================
--- linux-2.6.10-bk11-warnings/fs/cifs/asn1.c (revision 10)
+++ linux-2.6.10-bk11-warnings/fs/cifs/asn1.c (revision 11)
@@ -210,7 +210,7 @@
{
unsigned char ch;
- if (eoc == 0) {
+ if (eoc == NULL) {
if (!asn1_octet_decode(ctx, &ch))
return 0;
Index: linux-2.6.10-bk11-warnings/fs/cifs/connect.c
===================================================================
--- linux-2.6.10-bk11-warnings/fs/cifs/connect.c (revision 10)
+++ linux-2.6.10-bk11-warnings/fs/cifs/connect.c (revision 11)
@@ -846,7 +846,7 @@
return 1;
}
}
- if(vol->UNCip == 0)
+ if(vol->UNCip == NULL)
vol->UNCip = &vol->UNC[2];
return 0;
@@ -1505,7 +1505,7 @@
/* If find_unc succeeded then rc == 0 so we can not end */
if (tcon) /* up accidently freeing someone elses tcon struct */
tconInfoFree(tcon);
- if (existingCifsSes == 0) {
+ if (existingCifsSes == NULL) {
if (pSesInfo) {
if ((pSesInfo->server) &&
(pSesInfo->status == CifsGood)) {
@@ -1576,7 +1576,7 @@
user = ses->userName;
domain = ses->domainName;
smb_buffer = cifs_buf_get();
- if (smb_buffer == 0) {
+ if (smb_buffer == NULL) {
return -ENOMEM;
}
smb_buffer_response = smb_buffer;
@@ -1829,7 +1829,7 @@
domain = ses->domainName;
smb_buffer = cifs_buf_get();
- if (smb_buffer == 0) {
+ if (smb_buffer == NULL) {
return -ENOMEM;
}
smb_buffer_response = smb_buffer;
@@ -2094,7 +2094,7 @@
domain = ses->domainName;
*pNTLMv2_flag = FALSE;
smb_buffer = cifs_buf_get();
- if (smb_buffer == 0) {
+ if (smb_buffer == NULL) {
return -ENOMEM;
}
smb_buffer_response = smb_buffer;
@@ -2436,7 +2436,7 @@
user = ses->userName;
domain = ses->domainName;
smb_buffer = cifs_buf_get();
- if (smb_buffer == 0) {
+ if (smb_buffer == NULL) {
return -ENOMEM;
}
smb_buffer_response = smb_buffer;
@@ -2810,7 +2810,7 @@
return -EIO;
smb_buffer = cifs_buf_get();
- if (smb_buffer == 0) {
+ if (smb_buffer == NULL) {
return -ENOMEM;
}
smb_buffer_response = smb_buffer;
More information about the samba-technical
mailing list