Commit ab2f218f authored by Steve French's avatar Steve French
Browse files

[CIFS] Fix compiler warnings



Fix some compiler warnings noticed on x64 by me and ppc64 by Shaggy

Signed-off-by: default avatarSteve French <(sfrench@us.ibm.com)>
parent 9a899e76
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -191,7 +191,8 @@ asn1_header_decode(struct asn1_ctx *ctx,
		   unsigned char **eoc,
		   unsigned char **eoc,
		   unsigned int *cls, unsigned int *con, unsigned int *tag)
		   unsigned int *cls, unsigned int *con, unsigned int *tag)
{
{
	unsigned int def, len;
	unsigned int def = 0; 
	unsigned int len = 0;


	if (!asn1_id_decode(ctx, cls, con, tag))
	if (!asn1_id_decode(ctx, cls, con, tag))
		return 0;
		return 0;
+1 −1
Original line number Original line Diff line number Diff line
@@ -331,7 +331,7 @@ CIFS_SB(struct super_block *sb)
	return sb->s_fs_info;
	return sb->s_fs_info;
}
}


static inline const char CIFS_DIR_SEP(const struct cifs_sb_info *cifs_sb)
static inline char CIFS_DIR_SEP(const struct cifs_sb_info *cifs_sb)
{
{
	if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_POSIX_PATHS)
	if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_POSIX_PATHS)
		return '/';
		return '/';
+2 −2
Original line number Original line Diff line number Diff line
@@ -791,8 +791,8 @@ static ssize_t cifs_write(struct file *file, const char *write_data,


	pTcon = cifs_sb->tcon;
	pTcon = cifs_sb->tcon;


	cFYI(1,(" write %d bytes to offset %lld of %s", write_size,
	cFYI(1,("write %zd bytes to offset %lld of %s", write_size,
	   *poffset, file->f_dentry->d_name.name)); /* BB removeme BB */
	   *poffset, file->f_dentry->d_name.name));


	if (file->private_data == NULL)
	if (file->private_data == NULL)
		return -EBADF;
		return -EBADF;
+1 −1

File changed.

Contains only whitespace changes.