Skip to content
Commit c4cf3ba4 authored by Himangi Saraogi's avatar Himangi Saraogi Committed by Tyler Hicks
Browse files

ecryptfs: Drop cast



This patch does away with cast on void * and the if as it is unnecessary.

The following Coccinelle semantic patch was used for making the change:

@r@
expression x;
void* e;
type T;
identifier f;
@@

(
  *((T *)e)
|
  ((T *)x)[...]
|
  ((T *)x)->f
|
- (T *)
  e
)

Signed-off-by: default avatarHimangi Saraogi <himangi774@gmail.com>
Signed-off-by: default avatarTyler Hicks <tyhicks@canonical.com>
parent 9e78d14a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment