cifs: remove unnecessary type castings
[sfrench/cifs-2.6.git] / fs / cifs / smb2misc.c
index 17813c3d0c6e0a0229f9b83f9da7ade8f38eed17..db0f27fd373b6ffef0173a2d1c6af6573fbbdf03 100644 (file)
@@ -402,7 +402,7 @@ smb2_get_data_area_len(int *off, int *len, struct smb2_hdr *shdr)
 unsigned int
 smb2_calc_size(void *buf, struct TCP_Server_Info *srvr)
 {
-       struct smb2_pdu *pdu = (struct smb2_pdu *)buf;
+       struct smb2_pdu *pdu = buf;
        struct smb2_hdr *shdr = &pdu->hdr;
        int offset; /* the offset from the beginning of SMB to data area */
        int data_length; /* the length of the variable length data area */